Skip to content

Commit

Permalink
address lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Feb 26, 2021
1 parent acaa3a7 commit ffcdbc0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions log_level_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,17 @@ func TestLogLevel(t *testing.T) {
}
}()
logger.Debugw("foo")
SetLogLevel(subsystem, "debug")
if err := SetLogLevel(subsystem, "debug"); err != nil {
t.Error(err)
}
logger.Debugw("bar")
SetAllLoggers(LevelInfo)
logger.Debugw("baz")
logger.Sync()
reader.Close()
// ignore the error because
// https://github.com/uber-go/zap/issues/880
_ = logger.Sync()
if err := reader.Close(); err != nil {
t.Error(err)
}
<-done
}

0 comments on commit ffcdbc0

Please sign in to comment.