diff --git a/apps/meteor/app/livechat/server/methods/removeAllClosedRooms.js b/apps/meteor/app/livechat/server/methods/removeAllClosedRooms.js index c70a82a853bd7..58888051fa80c 100644 --- a/apps/meteor/app/livechat/server/methods/removeAllClosedRooms.js +++ b/apps/meteor/app/livechat/server/methods/removeAllClosedRooms.js @@ -13,11 +13,14 @@ Meteor.methods({ } let count = 0; + // These are not debug logs since we want to know when the action is performed + Livechat.logger.info(`User ${Meteor.userId()} is removing all closed rooms`); LivechatRooms.findClosedRooms(departmentIds).forEach(({ _id }) => { Livechat.removeRoom(_id); count++; }); + Livechat.logger.info(`User ${Meteor.userId()} removed ${count} closed rooms`); return count; }, });