Skip to content

Commit

Permalink
Everything but errors should be written to standard output
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Christensen <kimworking@gmail.com>
  • Loading branch information
kichristensen committed May 4, 2024
1 parent 13221dd commit c2001be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/portercontext/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (c *Context) makeConsoleLogger() zapcore.Core {
consoleEncoder := zapcore.NewConsoleEncoder(encoding)

isInformational := func(lvl zapcore.Level) bool {
return lvl >= zapcore.InfoLevel && lvl < zapcore.WarnLevel && lvl >= c.logCfg.Verbosity
return lvl < zapcore.ErrorLevel && lvl >= c.logCfg.Verbosity
}
stdoutEnabler := zap.LevelEnablerFunc(isInformational)
stderrEnabler := zap.LevelEnablerFunc(func(lvl zapcore.Level) bool {
Expand Down

0 comments on commit c2001be

Please sign in to comment.