From 97b8979a1e2ea9a4859bc23d835d8b1cffed80f3 Mon Sep 17 00:00:00 2001 From: Kevin Aleman Date: Tue, 17 Oct 2023 16:35:07 -0600 Subject: [PATCH] log --- apps/meteor/app/livechat/server/lib/LivechatTyped.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/meteor/app/livechat/server/lib/LivechatTyped.ts b/apps/meteor/app/livechat/server/lib/LivechatTyped.ts index 082cb02cedb2..32cb5c83acd9 100644 --- a/apps/meteor/app/livechat/server/lib/LivechatTyped.ts +++ b/apps/meteor/app/livechat/server/lib/LivechatTyped.ts @@ -1241,7 +1241,7 @@ class LivechatClass { } async returnRoomAsInquiry(room: IOmnichannelRoom, departmentId?: string, overrideTransferData: any = {}) { - Livechat.logger.debug({ msg: `Transfering room to ${departmentId ? 'department' : ''} queue`, room }); + this.logger.debug({ msg: `Transfering room to ${departmentId ? 'department' : ''} queue`, room }); if (!room.open) { throw new Meteor.Error('room-closed'); } @@ -1266,7 +1266,7 @@ class LivechatClass { } const transferredBy = normalizeTransferredByData(user, room); - Livechat.logger.debug(`Transfering room ${room._id} by user ${transferredBy._id}`); + this.logger.debug(`Transfering room ${room._id} by user ${transferredBy._id}`); const transferData = { roomId: room._id, scope: 'queue', departmentId, transferredBy, ...overrideTransferData }; try { await this.saveTransferHistory(room, transferData); @@ -1282,7 +1282,6 @@ class LivechatClass { } async saveTransferHistory(room: IOmnichannelRoom, transferData: TransferData) { - Livechat.logger.debug(`Saving transfer history for room ${room._id}`); const { departmentId: previousDepartment } = room; const { department: nextDepartment, transferredBy, transferredTo, scope, comment } = transferData; @@ -1298,7 +1297,7 @@ class LivechatClass { const { _id, username } = transferredBy; const scopeData = scope || (nextDepartment ? 'department' : 'agent'); - Livechat.logger.debug(`Storing new chat transfer of ${room._id} [Transfered by: ${_id} to ${scopeData}]`); + this.logger.info(`Storing new chat transfer of ${room._id} [Transfered by: ${_id} to ${scopeData}]`); const transfer = { transferData: {