Skip to content

Commit

Permalink
web: add method to log
Browse files Browse the repository at this point in the history
  • Loading branch information
l3uddz committed Apr 4, 2021
1 parent 10a7a7f commit 3f039d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func (c *Client) Logger() gin.HandlerFunc {
rl := c.log.With().
Str("ip", g.ClientIP()).
Str("uri", g.Request.RequestURI).
Str("method", g.Request.Method).
Logger()

rl.Debug().Msg("Request received")
Expand Down

0 comments on commit 3f039d0

Please sign in to comment.