From d76986fd7a0e5c4085f2112f29aa911dd21b18a9 Mon Sep 17 00:00:00 2001 From: Eddie Zaneski Date: Thu, 10 Feb 2022 14:43:19 -0700 Subject: [PATCH] Change level for klog.Fatal Signed-off-by: Eddie Zaneski Kubernetes-commit: cd71d3f7881f0c66dbd28aec7af7a0ea0e2acf60 --- pkg/cmd/util/helpers.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/util/helpers.go b/pkg/cmd/util/helpers.go index 32aec2a91..ac55cf80a 100644 --- a/pkg/cmd/util/helpers.go +++ b/pkg/cmd/util/helpers.go @@ -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 {