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

@@ -25,7 +25,7 @@ export const update_person = function update(person) {
const person_obj = people.get_by_user_id(person.user_id);
if (!person_obj) {
blueslip.error("Got update_person event for unexpected user " + person.user_id);
blueslip.error("Got update_person event for unexpected user", {user_id: person.user_id});
return;
}