Merge pull request #108053 from eddiezane/ez/update-kubectl-stack-log

Change level for klog.Fatal in kubectl
This commit is contained in:
Kubernetes Prow Robot 2022-02-11 00:36:04 -08:00 committed by GitHub
commit f06baf9f36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,10 +89,11 @@ func DefaultBehaviorOnFatal() {
fatalErrHandler = fatal
}
// fatal prints the message (if provided) and then exits. If V(6) or greater,
// klog.Fatal is invoked for extended information.
// fatal prints the message (if provided) and then exits. If V(99) or greater,
// klog.Fatal is invoked for extended information. This is intended for maintainer
// debugging and out of a reasonable range for users.
func fatal(msg string, code int) {
if klog.V(6).Enabled() {
if klog.V(99).Enabled() {
klog.FatalDepth(2, msg)
}
if len(msg) > 0 {