Explorar el Código

Fix not to pass formatted string to Fprintf's format specifier parameter (#1747)

Sai hace 7 años
padre
commit
b4f5155982
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      logger.go

+ 1 - 1
logger.go

@@ -191,7 +191,7 @@ func LoggerWithConfig(conf LoggerConfig) HandlerFunc {
 
 			param.Path = path
 
-			fmt.Fprintf(out, formatter(param))
+			fmt.Fprint(out, formatter(param))
 		}
 	}
 }