fix: logs format
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user