Explorar o código

fix default log format

`reset` field should be after `method` in LoggerWithWriter function.
Danieliu %!s(int64=9) %!d(string=hai) anos
pai
achega
30f014c754
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      logger.go

+ 1 - 1
logger.go

@@ -80,7 +80,7 @@ func LoggerWithWriter(out io.Writer, notlogged ...string) HandlerFunc {
 				statusColor, statusCode, reset,
 				statusColor, statusCode, reset,
 				latency,
 				latency,
 				clientIP,
 				clientIP,
-				methodColor, reset, method,
+				methodColor, method, reset,
 				path,
 				path,
 				comment,
 				comment,
 			)
 			)