Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/labstack/echo
Browse files Browse the repository at this point in the history
  • Loading branch information
vishr committed Jan 21, 2017
2 parents e8910be + 8cd3cb0 commit 17d6631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middleware/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type (

template *fasttemplate.Template
colorer *color.Color
pool sync.Pool
pool *sync.Pool
}
)

Expand Down Expand Up @@ -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))
},
Expand Down

0 comments on commit 17d6631

Please sign in to comment.