mirror of
https://github.com/labstack/echo.git
synced 2025-02-07 13:31:38 +02:00
Merge branch 'master' of https://github.com/labstack/echo
This commit is contained in:
commit
17d66313ff
@ -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))
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user