Skip to content

Commit

Permalink
PR improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Jan 22, 2024
1 parent 25f61a1 commit 5cacb6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logp/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func makeEventLogOutput(cfg Config, enab zapcore.LevelEnabler) (zapcore.Core, er
// WithFileOutput creates a new file output based on cfg and
// replaces the previous one.
func WithFileOutput(cfg Config) func(zapcore.Core) zapcore.Core {
out, err := makeFileOutput(cfg, zap.DebugLevel)
out, err := makeFileOutput(cfg, cfg.Level.ZapLevel())
if err != nil {
L().Errorf("could not create file output: %s", err)
out = zapcore.NewNopCore()
Expand Down

0 comments on commit 5cacb6c

Please sign in to comment.