Add duration_ms to log entries (#628)

This commit is contained in:
Dan Sosedoff 2022-12-25 13:24:22 -06:00 committed by GitHub
parent 1897bef08d
commit 12a4bf70c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}