mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-04 07:02:45 +08:00
do not log fetch responses
This commit is contained in:
parent
d74d13691b
commit
0b09f1d87e
1 changed files with 11 additions and 9 deletions
|
@ -48,15 +48,17 @@ class IMAPComposer extends Transform {
|
|||
|
||||
let compiled = obj.compiled ? obj.compiled : imapHandler.compiler(obj);
|
||||
|
||||
this.connection.logger.debug(
|
||||
{
|
||||
tnx: 'send',
|
||||
cid: this.connection.id
|
||||
},
|
||||
'[%s] S:',
|
||||
this.connection.id,
|
||||
compiled
|
||||
);
|
||||
if (!this.skipFetchLog || (!obj.compiled && this.skipFetchLog)) {
|
||||
this.connection.logger.debug(
|
||||
{
|
||||
tnx: 'send',
|
||||
cid: this.connection.id
|
||||
},
|
||||
'[%s] S:',
|
||||
this.connection.id,
|
||||
compiled
|
||||
);
|
||||
}
|
||||
|
||||
this.push(Buffer.from(compiled + '\r\n', 'binary'));
|
||||
done();
|
||||
|
|
Loading…
Reference in a new issue