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

A way to modify log level #132

Closed
silverwind opened this issue Jun 3, 2024 · 1 comment · Fixed by #133
Closed

A way to modify log level #132

silverwind opened this issue Jun 3, 2024 · 1 comment · Fixed by #133

Comments

@silverwind
Copy link

silverwind commented Jun 3, 2024

I'd like to silence non-error messages in the console, e.g only have output from the actual shellcheck binary, e.g a ERROR log level. It looks like the INFO log level is hardcoded here.

Would you mind supporting a environment variable like SHELLCHECK_LOG_LEVEL so that users can control this log level? I can raise a pull request if you agree.

@carlocorradini
Copy link
Collaborator

See #133

Can you try it? Thanks

  1. Set environment variable SHELLCHECKJS_LOGGER_LEVEL=off
  2. npm test
  3. Check if you see the logger messages

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

Successfully merging a pull request may close this issue.

2 participants