Open whiteforestever opened 8 months ago
By using current approach defer logger.Sync() we don't handle possible error returned by func (log *Logger) Sync() error. My suggestion is to wrap it with anonymous function.
defer logger.Sync()
func (log *Logger) Sync() error
All committers have signed the CLA.
By using current approach
defer logger.Sync()
we don't handle possible error returned byfunc (log *Logger) Sync() error
. My suggestion is to wrap it with anonymous function.