do not log fetch responses

This commit is contained in:
Andris Reinman 2020-02-05 11:36:41 +02:00
parent d74d13691b
commit 0b09f1d87e
No known key found for this signature in database
GPG key ID: 5388A30A31834D83

View file

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