Change level for klog.Fatal
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com> Kubernetes-commit: cd71d3f7881f0c66dbd28aec7af7a0ea0e2acf60
This commit is contained in:
parent
dc0b35e84e
commit
d76986fd7a
|
|
@ -89,10 +89,11 @@ func DefaultBehaviorOnFatal() {
|
||||||
fatalErrHandler = fatal
|
fatalErrHandler = fatal
|
||||||
}
|
}
|
||||||
|
|
||||||
// fatal prints the message (if provided) and then exits. If V(6) or greater,
|
// fatal prints the message (if provided) and then exits. If V(99) or greater,
|
||||||
// klog.Fatal is invoked for extended information.
|
// 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) {
|
func fatal(msg string, code int) {
|
||||||
if klog.V(6).Enabled() {
|
if klog.V(99).Enabled() {
|
||||||
klog.FatalDepth(2, msg)
|
klog.FatalDepth(2, msg)
|
||||||
}
|
}
|
||||||
if len(msg) > 0 {
|
if len(msg) > 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue