Skip to content

Conversation

@ColtonWilley
Copy link
Contributor

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.

@padelsbach
Copy link
Contributor

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."
Copy link
Contributor

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

@ColtonWilley
Copy link
Contributor Author

Why do we need a special build for this? Why can't they use the env vars?

For systems with default replace, its difficult to guarantee every running process gets the env vars needed to restrict the output.

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 this pull request may close these issues.

2 participants