swapping noop to standard zap logger (#2634)

This commit is contained in:
Dennis Coyle 2019-07-25 12:45:22 -04:00 committed by GitHub
parent 0cdeae1922
commit 5b6f3020fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ func (cfg *Config) setDefaults(ctx context.Context) error {
cfg.Volatile.MaxMemory = 0
}
if cfg.Volatile.Log == nil {
cfg.Volatile.Log = zap.NewNop()
cfg.Volatile.Log = zap.L()
}
if cfg.Volatile.DialTimeout.Seconds() == 0 {
cfg.Volatile.DialTimeout = defaultUplinkDialTimeout