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

be able to set the log level to silent with logger.SetLogLevel #415

Open
lauraeci opened this issue Oct 31, 2023 · 0 comments
Open

be able to set the log level to silent with logger.SetLogLevel #415

lauraeci opened this issue Oct 31, 2023 · 0 comments

Comments

@lauraeci
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

The problem I'm having is during the execution step, there are errors that are skipped because the engine detects that these facts don't have particular methods but the flag ReturnErrOnFailedRuleEvaluation is false so the execution should continue. These logs very noisy with the potential of flooding our cloud logging.

Describe the solution you'd like
A clear and concise description of what you want to happen.

I would like to be able to completely silence the logs per environment so that an engineer can run verbosely while debugging but be silent in production. The issue seems to be that some panic-level logs are caught and logged using fmt and not the configurable logger.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I tried to change the logger.SetLogLevel but wasn't able to silence all logs.

Additional context
Add any other context or screenshots about the feature request here.
Happy to provide more context as needed. Thank you! Greatly appreciated. If there's any other work around please let me know.

@lauraeci lauraeci changed the title be able to set the log level to silent with something logger.SetLogLevel be able to set the log level to silent with logger.SetLogLevel Oct 31, 2023
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