-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add meaningful logging to library and CLI applications #922
Comments
Should we generalise this issue to have it address logging in general? Some points that need addressing are
|
we could go ahead and trigger a goroutine stack dump as well |
relates to #926 |
the way I imagine it, it might be a shortcut to specifying the profiling flags, as well as setting --interactive=flase, and emitting logs at "debug" level (if we choose to support log levels) and emit everything to stdout |
Let's spec out a solution that first addresses the mixture of A second part of this would include some basic additions so that logs messages at debug level are emitted on various useful events, so that if we capture stdout/stderr and attach it to a support case, we get meaningful info to assist diagnose failing runs of support-bundle. |
--debug
should provide more meaningful logs
Reopening cause we are still not able to store logs in the support bundle. This requires changes in kubernetes/klog#363 PR to be merged and released. Specifically, we nee to be able to tap into the stream of logs being emitted by klog as described here. We also get the capability to set the logs verbosity level programatically. Note to self: Add a |
PR was merged on March 2. #1028 captures the remaining work. |
Describe the rationale for the suggested feature.
When we run
preflight
orsupport-bundle
(or, indeed, the other CLI components) there is a--debug
switch, but it doesn't appear to do much.Several times lately I have wanted to review what the process is doing, and where it is failing, but do not have the information without inserting print statements.
Describe the feature
When we specify
--debug
on the CLI, provide at least:Describe alternatives you've considered
Describe alternative solutions here. Include any workarounds you've considered.
TBA
Additional context
The text was updated successfully, but these errors were encountered: