Skip to content

Commit

Permalink
remove error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
eljoth committed Oct 5, 2021
1 parent 49d34bf commit d89d134
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions _template/cmd/{{.appName}}/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ func run() error {
return err
}

defer func() {
if err := logger.Sync(); err != nil {
logger.Error("Failed to flush logger", zap.Error(err))
}
}()
logger.Sync()

logger.Info("Hello world!", zap.String("location", "world"))

Expand Down

0 comments on commit d89d134

Please sign in to comment.