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

@@ -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);