remove unneeded logs in notification file

This commit is contained in:
Vishwas Shashidhar 2019-05-17 16:36:50 +05:30
parent 4a7fe58fba
commit 27585b7a26

View File

@ -310,16 +310,14 @@ class Notification extends NotificationHandler {
* Closes the active notification after certain period
*/
private cleanUpInactiveNotification() {
logger.info('active notification', this.activeNotifications.length);
logger.info('inactive notification', this.inactiveWindows.length);
if (this.inactiveWindows.length > 0) {
logger.info('cleaning up inactive notification windows', { inactiveNotification: this.inactiveWindows.length });
logger.info('notification: cleaning up inactive notification windows', {inactiveNotification: this.inactiveWindows.length});
this.inactiveWindows.forEach((window) => {
if (windowExists(window)) {
window.close();
}
});
logger.info(`Cleaned up inactive notification windows`, { inactiveNotification: this.inactiveWindows.length });
logger.info(`notification: cleaned up inactive notification windows`, {inactiveNotification: this.inactiveWindows.length});
}
}