Ignore errors from zap logger Sync (#2086)

Added golang CI lint
Reference issue: https://github.com/uber-go/zap/issues/880

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2021-06-21 11:58:48 +05:30
committed by GitHub
parent 3f99b483cb
commit 72c89268ec
17 changed files with 35 additions and 33 deletions
+1 -6
View File
@@ -33,11 +33,6 @@ func main() {
if err != nil {
log.Fatalf("can't initialize zap logger: %v", err)
}
defer func() {
err := logger.Sync()
if err != nil {
log.Fatal(err)
}
}()
defer logger.Sync()
app.Run(logger)
}