Skip to content

Commit

Permalink
refactor: simplifying logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nanmu42 committed Dec 24, 2021
1 parent 541ede6 commit a8d7867
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cmd/rly/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,5 @@ func RequestLogger(l *zap.Logger) gin.HandlerFunc {
return
}
}
l.Info("APIAuditLog",
zap.Uint64("seq", sequence),
zap.String("method", c.Request.Method),
zap.Int("status", c.Writer.Status()),
zap.String("URL", c.Request.RequestURI),
zap.String("IP", c.ClientIP()),
zap.String("UA", c.Request.UserAgent()),
zap.String("ref", c.Request.Referer()),
zap.Duration("lapse", time.Since(receivedAt)),
zap.Strings("err", c.Errors.Errors()),
)
}
}

0 comments on commit a8d7867

Please sign in to comment.