mirror of
https://github.com/gin-gonic/gin.git
synced 2025-05-21 01:17:49 +08:00
Merge branch 'sync_pool' into develop
Conflicts: logger.go
This commit is contained in:
@ -67,11 +67,10 @@ func Logger() HandlerFunc {
|
||||
}
|
||||
end := time.Now()
|
||||
latency := end.Sub(start)
|
||||
stdlogger.Printf("[GIN] %v |%s %3d %s| %12v | %3.1f%% | %s %4s %s\n",
|
||||
stdlogger.Printf("[GIN] %v |%s %3d %s| %12v | %s %4s %s\n",
|
||||
end.Format("2006/01/02 - 15:04:05"),
|
||||
color, c.Writer.Status(), reset,
|
||||
latency,
|
||||
c.Engine.CacheStress()*100,
|
||||
requester,
|
||||
c.Req.Method, c.Req.URL.Path,
|
||||
)
|
||||
|
Reference in New Issue
Block a user