-
Notifications
You must be signed in to change notification settings - Fork 176
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
silent log level does not work #97
Comments
regevbr
added a commit
to regevbr/consola
that referenced
this issue
May 7, 2020
regevbr
added a commit
to regevbr/consola
that referenced
this issue
May 9, 2020
regevbr
added a commit
to regevbr/consola
that referenced
this issue
May 9, 2020
regevbr
added a commit
to regevbr/consola
that referenced
this issue
May 9, 2020
regevbr
added a commit
to regevbr/consola
that referenced
this issue
May 9, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current logic of deciding if log level is enabled is by checking that the desired log level is lower than the set log level.
https://github.com/nuxt-contrib/consola/blob/28a61980aecbb41837b1dc81f87d6f6e76f7dcde/src/consola.js#L224
If we use infinity as the silent value, that will effectively cause all log levels to log.
We need to set silent log level to be -infinity
The text was updated successfully, but these errors were encountered: