updated logging

This commit is contained in:
Andris Reinman 2017-05-16 14:05:14 +03:00
parent 162d04102a
commit c44b3a5dcc

View file

@ -106,7 +106,7 @@ class ImapNotifier extends EventEmitter {
let eventName = this._eventName(session.user.id.toString(), path);
this._listeners.addListener(eventName, handler);
this.logger.debug('New journal listener for %s ("%s:%s")', eventName, session.user.username, path);
this.logger.debug('[%s] New journal listener for %s ("%s:%s")', session.id, eventName, session.user.username, path);
}
/**
@ -120,7 +120,7 @@ class ImapNotifier extends EventEmitter {
let eventName = this._eventName(session.user.id.toString(), path);
this._listeners.removeListener(eventName, handler);
this.logger.debug('Removed journal listener from %s ("%s:%s")', eventName, session.user.username, path);
this.logger.debug('[%s] Removed journal listener from %s ("%s:%s")', session.id, eventName, session.user.username, path);
}
/**