Using sync.Pool instead of a channel

This commit is contained in:
Manu Mtz-Almeida
2014-07-06 21:09:23 +02:00
parent 31417dbc63
commit 3e4033673e
2 changed files with 18 additions and 65 deletions
+1 -2
View File
@@ -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,
)