Fix for issue #2454

This commit is contained in:
lihaowei 2020-08-14 11:39:40 +08:00
parent b94d23d1b4
commit 37edf23d10

View File

@ -232,6 +232,8 @@ func LoggerWithConfig(conf LoggerConfig) HandlerFunc {
}
return func(c *Context) {
c.mu.Lock()
defer c.mu.Unlock()
// Start timer
start := time.Now()
path := c.Request.URL.Path