Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scope.setLevel() does not work with captureException() #1592

Closed
4 of 8 tasks
gregwym opened this issue Sep 26, 2018 · 0 comments
Closed
4 of 8 tasks

scope.setLevel() does not work with captureException() #1592

gregwym opened this issue Sep 26, 2018 · 0 comments

Comments

@gregwym
Copy link

gregwym commented Sep 26, 2018

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

@sentry/node: 4.0.5
Sentry: 9.0.0

Description

      Sentry.withScope(scope => {
        scope.setLevel(Sentry.Severity.Warning);
        Sentry.captureException(error);
      });

The snippet above reports the exception with level error when it should be a warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant