blueslip: Reduce cardinality of blueslip.error() calls.

Particularly when grouping in Sentry, pushing the ids and such into
the additional data section helps group like errors together better.
This commit is contained in:
Alex Vandiver
2023-04-24 13:57:45 +00:00
committed by Tim Abbott
parent 1769f981da
commit 64b277d845
60 changed files with 148 additions and 169 deletions

View File

@@ -229,7 +229,7 @@ export function create($container, list, opts) {
const s = opts.modifier(item);
if (typeof s !== "string") {
blueslip.error("List item is not a string: " + s);
blueslip.error("List item is not a string", {item: s});
continue;
}
@@ -268,7 +268,7 @@ export function create($container, list, opts) {
}
const html = opts.modifier(item);
if (typeof html !== "string") {
blueslip.error("List item is not a string: " + html);
blueslip.error("List item is not a string", {item: html});
return;
}