New ๐ŸŒŠ wave for @helm

Commit 6d9b68dc

6d9b68dc5b2bMerged

zhiliaev <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified

Description

feat: disable klog2 INFO | WARNING | ERROR

Details

Commit
6d9b68dc5b2b
Parent
2783485e02a5

pkg/log/log.gomodifiedView file

@@ -2,6 +2,7 @@
22
33 import (
44 "fmt"
5+ "io/ioutil"
56
67 "github.com/bombsimon/logrusr/v2"
78 "github.com/helmwave/helmwave/pkg/helper"
@@ -77,6 +78,10 @@
7778 logKubernetesClientError,
7879 }
7980 klog.SetLogger(logrusr.New(log.StandardLogger()))
81+ klog.SetOutputBySeverity("INFO", ioutil.Discard)
82+ klog.SetOutputBySeverity("WARNING", ioutil.Discard)
83+ klog.SetOutputBySeverity("ERROR", ioutil.Discard)
84+ // klog.SetOutputBySeverity("FATAL", logboek.DefaultLogger().ErrStream())
8085
8186 if l.width > 0 {
8287 logboek.DefaultLogger().Streams().SetWidth(l.width)