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
-vmodule should allow level -1 #107
Comments
which is essentially disable logging completely? |
/remove-kind feature |
@neolit123: Those labels are not set on the issue: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Is there? Level -1 applies only to Info, not Error, so it is not equivalent to disabling logging completely.
If I have missed something then could you please indicate how to use -vmodule to disable all Info logging, but not Error logging, for a particular module. |
What is required is the equivalent with -vmodule to also work. |
yes, i guess that's true.
ok, i think there is no way of doing that, currently. you can also try asking in #klog on the k8s slack if somebody has ideas. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind bug
It is possible to pass the option -v -1 to disable level 0 logging, in which case only Errors are logged. However, it is not possible to pass a negative number for logging in a particular module, i.e., with the -vmodule option.
What steps did you take and what happened:
: logtest 114; go build && ./logtest -vmodule klogr=-1
invalid value "klogr=-1" for flag -vmodule: negative value for vmodule level
What did you expect to happen:
No error message, all log messages other than Errors for the specified module silenced.
Anything else you would like to add:
The text was updated successfully, but these errors were encountered: