fix: logs format

This commit is contained in:
Shivam Mishra
2025-03-13 11:52:07 +05:30
parent f6e2bf1247
commit a35b3a343e
2 changed files with 3 additions and 13 deletions
@@ -230,12 +230,7 @@ export const mutations = {
});
window.logrelic(
`conversation update mismatch with incoming ${conversation} and stored ${selectedConversation}`,
{
customAttributes: {
conversation_id: conversation.id,
},
}
`conversation update mismatch for ${conversation.id} with incoming ${JSON.stringify(conversation, null, 2)} and stored ${JSON.stringify(selectedConversation, null, 2)}`
);
return;
@@ -256,12 +251,7 @@ export const mutations = {
});
window.logrelic(
`conversation update overlap with incoming ${conversation} and stored ${selectedConversation}`,
{
customAttributes: {
conversation_id: conversation.id,
},
}
`conversation update overlap for ${conversation.id} with incoming ${JSON.stringify(conversation, null, 2)} and stored ${JSON.stringify(selectedConversation, null, 2)}`
);
}
@@ -83,7 +83,7 @@ class BaseActionCableConnector {
if (this.isAValidEvent(data)) {
if (this.events[event] && typeof this.events[event] === 'function') {
window.logrelic(
`processing actioncable ${event} with ${data} at ${Number(Date.now())}`
`processing actioncable ${event} with ${JSON.stringify(data, null, 2)} at ${Number(Date.now())}`
);
this.events[event](data);
}