Skip to content

Commit

Permalink
update info log
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 committed Dec 19, 2024
1 parent 9308132 commit 96aeba0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apps/meteor/ee/server/patches/mergeContacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ export const runMergeContacts = async (
if (value) {
void notifyOnSettingChanged(value);
}
logger.info(
`${deletedCount} contacts (ids: ${JSON.stringify(similarContactIds)}) have been deleted and merged with contact with id ${
originalContact._id
}`,
);
logger.info({
msg: 'contacts have been deleted and merged with a contact',
similarContactIds,
deletedCount,
originalContactId: originalContact._id,
});

logger.debug({ msg: 'Updating rooms with new contact id', contactId });
await LivechatRooms.updateMergedContactIds(similarContactIds, contactId, { session });
Expand Down

0 comments on commit 96aeba0

Please sign in to comment.