This commit is contained in:
fallen-angle
2022-01-20 16:49:37 +08:00
parent 2280679053
commit 582807ae10
13 changed files with 182 additions and 16 deletions

View File

@@ -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(),