Using sync.Pool instead of a channel
This commit is contained in:
@@ -61,11 +61,10 @@ func Logger() HandlerFunc {
|
||||
color = red
|
||||
}
|
||||
latency := time.Since(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",
|
||||
time.Now().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