Commit b24f6965
b24f6965b089Merged
zhiliaev <[email protected]> ยท 4 years ago ยท 2 files ยท ~2 modified
Description
soft exit
Details
- Commit
- b24f6965b089
- Parent
- 2ca30edf006c
pkg/log/log.gomodifiedView file
@@ -12,7 +12,7 @@
1212
"github.com/urfave/cli/v2"1313
"github.com/werf/logboek"1414
utilruntime "k8s.io/apimachinery/pkg/util/runtime"15-
"k8s.io/klog/v2"15+
klog_v2 "k8s.io/klog/v2"1616
)1717
1818
// Settings stores configuration for logger.@@ -77,10 +77,12 @@
7777
utilruntime.ErrorHandlers = []func(error){7878
logKubernetesClientError,7979
}80-
klog.SetLogger(logrusr.New(log.StandardLogger()))81-
klog.SetOutputBySeverity("INFO", io.Discard)82-
klog.SetOutputBySeverity("WARNING", io.Discard)83-
klog.SetOutputBySeverity("ERROR", io.Discard)80+
81+
// https://github.com/werf/werf/blob/main/cmd/werf/common/kubedog.go#L4982+
klog_v2.SetLogger(logrusr.New(log.StandardLogger()))83+
klog_v2.SetOutputBySeverity("INFO", io.Discard)84+
klog_v2.SetOutputBySeverity("WARNING", io.Discard)85+
klog_v2.SetOutputBySeverity("ERROR", io.Discard)8486
// klog.SetOutputBySeverity("FATAL", logboek.DefaultLogger().ErrStream())8587
8688
if l.width > 0 {pkg/plan/apply.gomodifiedView file
Loading diffโฆ