Skip to content

Commit

Permalink
No longer use message as a key in logger context
Browse files Browse the repository at this point in the history
This break message parsing in our log store.
  • Loading branch information
11k committed Jan 23, 2024
1 parent 83d2862 commit 8d4bdc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/services/dgg-rolling-chat-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ class ChatCache {
return;
}
this.messageMatching.getLinks(message).forEach((link) => {
this.logger.info({ user, url: link.hostname + link.pathname, message }, 'Cached viewer url');
this.logger.info(
{ user, url: link.hostname + link.pathname, msg: message },
'Cached viewer url',
);
if (!_.has(this.viewerUrlMap, user)) this.viewerUrlMap[user] = [];
this.viewerUrlMap[user].push({
url: link.hostname + link.pathname,
Expand Down

0 comments on commit 8d4bdc4

Please sign in to comment.