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

setLevel example does not work #1068

Closed
turbolego opened this issue Jun 18, 2019 · 2 comments
Closed

setLevel example does not work #1068

turbolego opened this issue Jun 18, 2019 · 2 comments

Comments

@turbolego
Copy link

In the section for "Setting the level" in the documentation the example is:

Sentry.configureScope((scope) => { scope.setLevel('warning'); });

This gives me this error:

Argument of type '"warning"' is not assignable to parameter of type 'Severity'.ts(2345)

If i instead do this:
Sentry.configureScope((scope) => { scope.setLevel(Sentry.Severity.Warning); });

It works! 😄 (Thanks @gregwym for the solution).

Please update the documentation.

@dashed
Copy link
Member

dashed commented Jul 3, 2019

@turbolego glad you found a workaround. Mind sending a pull-request for this?

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2021

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@dashed dashed closed this as completed Jan 6, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants