Don't return errors on logger.Sync
Currently logger.Sync fails often (or always), reading https://github.com/uber-go/zap/issues/328 seems like it's safe to ignore.
This commit is contained in:
parent
b9a1aa9074
commit
51e8c10cbe
|
@ -248,7 +248,9 @@ func NewMessenger(
|
|||
shutdownTasks: []func() error{
|
||||
persistence.Close,
|
||||
adapter.transport.Reset,
|
||||
logger.Sync,
|
||||
// Currently this often fails, seems like it's safe to ignore them
|
||||
// https://github.com/uber-go/zap/issues/328
|
||||
func() error { _ = logger.Sync; return nil },
|
||||
},
|
||||
logger: logger,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue