Merge pull request #94663 from soltysh/fatal_level

Change at which level klog.Fatal is invoked
This commit is contained in:
Kubernetes Prow Robot 2020-11-10 22:37:48 -08:00 committed by GitHub
commit 1cd2ed816a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {