refactor(core): Convert verbose to debug logs (#10574)

This commit is contained in:
Iván Ovejero
2024-08-28 09:32:53 +02:00
committed by GitHub
parent ab9835126e
commit bc958be93b
54 changed files with 68 additions and 74 deletions

View File

@@ -589,7 +589,7 @@ export class EmailReadImapV1 implements INodeType {
conn.on('error', async (error) => {
const errorCode = error.code.toUpperCase();
if (['ECONNRESET', 'EPIPE'].includes(errorCode as string)) {
this.logger.verbose(`IMAP connection was reset (${errorCode}) - reconnecting.`, {
this.logger.debug(`IMAP connection was reset (${errorCode}) - reconnecting.`, {
error,
});
try {
@@ -618,7 +618,7 @@ export class EmailReadImapV1 implements INodeType {
if (options.forceReconnect !== undefined) {
reconnectionInterval = setInterval(
async () => {
this.logger.verbose('Forcing reconnection of IMAP node.');
this.logger.debug('Forcing reconnection of IMAP node.');
connection.end();
connection = await establishConnection();
await connection.openBox(mailbox);

View File

@@ -598,7 +598,7 @@ export class EmailReadImapV2 implements INodeType {
}
},
onUpdate: async (seqNo: number, info) => {
this.logger.verbose(`Email Read Imap:update ${seqNo}`, info);
this.logger.debug(`Email Read Imap:update ${seqNo}`, info);
},
};
@@ -631,7 +631,7 @@ export class EmailReadImapV2 implements INodeType {
});
conn.on('error', async (error) => {
const errorCode = ((error as JsonObject).code as string).toUpperCase();
this.logger.verbose(`IMAP connection experienced an error: (${errorCode})`, {
this.logger.debug(`IMAP connection experienced an error: (${errorCode})`, {
error: error as Error,
});
this.emitError(error as Error);
@@ -647,7 +647,7 @@ export class EmailReadImapV2 implements INodeType {
let reconnectionInterval: NodeJS.Timeout | undefined;
const handleReconnect = async () => {
this.logger.verbose('Forcing reconnect to IMAP server');
this.logger.debug('Forcing reconnect to IMAP server');
try {
isCurrentlyReconnecting = true;
if (connection.closeBox) await connection.closeBox(false);