-
Notifications
You must be signed in to change notification settings - Fork 28
Add option for debug output to default to silent #356
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
base: master
Are you sure you want to change the base?
Conversation
|
Why do we need a special build for this? Why can't they use the env vars? |
| echo " Note: Requires --replace-default. Only for test builds, not for production." | ||
| echo " --leave-silent Enable leave silent mode to suppress logging of return 0 in probing functions where expected failures may occur." | ||
| echo " Note: This only affects logging; the calling function is still responsible for handling all return values appropriately." | ||
| echo " --debug-silent Debug logging compiled in but silent by default. Use WOLFPROV_LOG_LEVEL and WOLFPROV_LOG_COMPONENTS env vars to enable at runtime. Requires --debug." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use --enable-debug-silent for consistency. Or even --enable-debug=silent to simplify the options
For systems with default replace, its difficult to guarantee every running process gets the env vars needed to restrict the output. |
…d-debug-silent-option
By default the debug build is noisy with default logging options. This is not suitable for testing systems with many applications as the log pollution becomes a problem. Add option for debug output to default to silent, with option to enable level or component specific logging at runtime with environment variables.