mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-13 15:35:28 +03:00
Add duration_ms to log entries (#628)
This commit is contained in:
parent
1897bef08d
commit
12a4bf70c0
@ -57,7 +57,8 @@ func RequestLogger(logger *logrus.Logger) gin.HandlerFunc {
|
||||
"status": status,
|
||||
"method": c.Request.Method,
|
||||
"remote_addr": c.ClientIP(),
|
||||
"duration": latency,
|
||||
"duration": latency.String(),
|
||||
"duration_ms": latency.Milliseconds(),
|
||||
"path": path,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user