File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package logger
22
33import (
44 "go.uber.org/zap"
5- "go.uber.org/zap/zapcore"
65)
76
87// Config represents the configuration for creating a zap.Logger.
@@ -16,6 +15,6 @@ type Config struct {
1615func NewConfig () Config {
1716 return Config {
1817 Format : "auto" ,
19- Level : zap .NewAtomicLevelAt ( zapcore . InfoLevel ),
18+ Level : zap .NewAtomicLevel ( ),
2019 }
2120}
Original file line number Diff line number Diff line change @@ -141,10 +141,10 @@ func TestGroup_UnmarshalTOML(t *testing.T) {
141141}
142142
143143func TestConfig_Encode (t * testing.T ) {
144- var c run.Config
144+ var c * run.Config = run . NewConfig ()
145145 c .Coordinator .WriteTimeout = itoml .Duration (time .Minute )
146146 buf := new (bytes.Buffer )
147- if err := toml .NewEncoder (buf ).Encode (& c ); err != nil {
147+ if err := toml .NewEncoder (buf ).Encode (c ); err != nil {
148148 t .Fatal ("Failed to encode: " , err )
149149 }
150150 got , search := buf .String (), `write-timeout = "1m0s"`
You can’t perform that action at this time.
0 commit comments