1
0
mirror of https://github.com/labstack/echo.git synced 2025-02-07 13:31:38 +02:00
This commit is contained in:
Vishal Rana 2017-01-21 10:21:02 -08:00
commit 17d66313ff

View File

@ -54,7 +54,7 @@ type (
template *fasttemplate.Template
colorer *color.Color
pool sync.Pool
pool *sync.Pool
}
)
@ -93,7 +93,7 @@ func LoggerWithConfig(config LoggerConfig) echo.MiddlewareFunc {
config.template = fasttemplate.New(config.Format, "${", "}")
config.colorer = color.New()
config.colorer.SetOutput(config.Output)
config.pool = sync.Pool{
config.pool = &sync.Pool{
New: func() interface{} {
return bytes.NewBuffer(make([]byte, 256))
},