From 6b4dd3d774bcc84a1f969214096b9cfa373ad389 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Wed, 9 Sep 2020 21:41:56 +0200 Subject: [PATCH] Change at which level klog.Fatal is invoked --- staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go b/staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go index 799c86b6035..a6bfdd80afd 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go @@ -86,10 +86,10 @@ func DefaultBehaviorOnFatal() { fatalErrHandler = fatal } -// fatal prints the message (if provided) and then exits. If V(2) or greater, +// fatal prints the message (if provided) and then exits. If V(6) or greater, // klog.Fatal is invoked for extended information. func fatal(msg string, code int) { - if klog.V(2).Enabled() { + if klog.V(6).Enabled() { klog.FatalDepth(2, msg) } if len(msg) > 0 {