Skip to content

Commit

Permalink
fix: add log #1
Browse files Browse the repository at this point in the history
log error
  • Loading branch information
brpaz authored Nov 15, 2020
2 parents 086a35d + 8bfc72f commit 794c1c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func ZapLogger(log *zap.Logger) echo.MiddlewareFunc {

err := next(c)
if err != nil {
log = log.With(zap.Error(err))
c.Error(err)
}

Expand Down

0 comments on commit 794c1c9

Please sign in to comment.