Skip to content

Commit

Permalink
fix(logger): check err for logger.Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mgjules committed Apr 11, 2022
1 parent 040e79f commit ab0ef1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ func New(lc fx.Lifecycle, cfg *config.Config) (*Logger, error) {

lc.Append(fx.Hook{
OnStop: func(_ context.Context) error {
logger.Sync()

return nil
return logger.Sync()
},
})

Expand Down

0 comments on commit ab0ef1a

Please sign in to comment.