From c44b3a5dcc629fb6b1104df389f91ae586747256 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Tue, 16 May 2017 14:05:14 +0300 Subject: [PATCH] updated logging --- lib/imap-notifier.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/imap-notifier.js b/lib/imap-notifier.js index 0aa30af0..eda5154f 100644 --- a/lib/imap-notifier.js +++ b/lib/imap-notifier.js @@ -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); } /**