From 7facffa63176433da3b6f284a4996a2f318cf34f Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 13 Mar 2025 14:45:17 +0530 Subject: [PATCH] feat: include general processing log as well --- .../dashboard/store/modules/conversations/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/javascript/dashboard/store/modules/conversations/index.js b/app/javascript/dashboard/store/modules/conversations/index.js index 0018e8468..770177dc9 100644 --- a/app/javascript/dashboard/store/modules/conversations/index.js +++ b/app/javascript/dashboard/store/modules/conversations/index.js @@ -264,6 +264,13 @@ export const mutations = { } } + if (window.newrelic) { + window.newrelic.log( + `processing conversation update for ${conversation.id} with incoming ${makeCompactJson(conversation)} and stored ${makeCompactJson(selectedConversation)}`, + { level: 'DEBUG' } + ); + } + const { messages, ...updates } = conversation; allConversations[index] = { ...selectedConversation, ...updates }; if (_state.selectedChatId === conversation.id) {