Skip to content

Commit c52f375

Browse files
fix(logging): use yellow color for warnings to distinguish them from errors
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
1 parent 7a93875 commit c52f375

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/logging/logger.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"io"
66
"log"
77

8+
"github.com/gookit/color"
89
"github.com/sirupsen/logrus"
910

1011
"github.com/werf/logboek"
@@ -19,6 +20,7 @@ func WithLogger(ctx context.Context) context.Context {
1920
// NewLogger returns new logger for any (foreground or background) mode.
2021
func NewLogger() types.LoggerInterface {
2122
logger := logboek.DefaultLogger()
23+
logger.Warn().SetStyle(color.New(color.Yellow))
2224

2325
captureOutputFromAnotherLoggers(logger.OutStream())
2426

0 commit comments

Comments
 (0)