Commit
This commit is contained in:
@@ -31,7 +31,7 @@ func RequestLog() gin.HandlerFunc {
|
||||
}
|
||||
|
||||
// Log while request cost an unexpected time;
|
||||
if cost >= 800 {
|
||||
if cost.Milliseconds() >= 800 {
|
||||
logParams = append(logParams,
|
||||
"status", c.Writer.Status(),
|
||||
"query", c.Request.URL.Query(),
|
||||
|
||||
Reference in New Issue
Block a user