logcheck doesn't handle Exit* functions correctly #264
Labels
kind/bug
Categorizes issue or PR as related to a bug.
wg/structured-logging
Categorizes an issue or PR as relevant to WG Structured Logging.
/kind bug
klog defines set of functions Exit, Exitf, Exitln, ExitDepth. Those functions are not correctly handled by logcheck. kubernetes/kubernetes#103293 (comment)
What steps did you take and what happened:
When running logcheck to validate log calls, it reported Exitf as structured logging method
What did you expect to happen:
I would expect that logcheck will ignore this method when in
allow-unstructured
mode and report it as error only whenallow-unstructured
is off.Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
The text was updated successfully, but these errors were encountered: