From 9880758ddbc807d38625b4d9fbbb88cea8575325 Mon Sep 17 00:00:00 2001 From: Dmitry Sedykh Date: Tue, 8 Jul 2014 16:07:59 +0400 Subject: [PATCH] No repeat call c.Writer.Status() --- logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger.go b/logger.go index da35ffb..5c018a4 100644 --- a/logger.go +++ b/logger.go @@ -69,7 +69,7 @@ func Logger() HandlerFunc { latency := end.Sub(start) 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, + color, code, reset, latency, requester, c.Req.Method, c.Req.URL.Path,