Skip to content

Commit

Permalink
fix(Log): Fix scope.addTag is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbo2002 committed Dec 13, 2020
1 parent 8dcce61 commit 0e98323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ class LogHelper {
Sentry.configureScope(scope => {
scope.setExtra('machine', os.hostname() + ':' + ConfigHelper.getPort());
scope.setTag('module', s.module);
scope.addTag('id', s.id);
scope.addTag('level', s.level);
scope.setTag('id', s.id);
scope.setTag('level', s.level);
scope.setUser(s.user);

Sentry[s.level === 'error' ? 'captureException' : 'captureMessage'](s.error);
Expand Down

0 comments on commit 0e98323

Please sign in to comment.