mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 08:50:13 +02:00
fix logger.
This commit is contained in:
parent
8d0fcbde70
commit
5688be80ba
2 changed files with 48 additions and 37 deletions
|
@ -86,7 +86,6 @@ func routeHandler(fn types.RouterHandler) http.HandlerFunc {
|
|||
}
|
||||
|
||||
logEntry.SetResponse(w, r)
|
||||
logEntry.Write()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -100,7 +99,6 @@ func middlewareHandler(fn types.MiddlewareHandler) func(http.Handler) http.Handl
|
|||
logEntry.SetError(err)
|
||||
errorHandler(err, w, r)
|
||||
logEntry.SetResponse(w, r)
|
||||
logEntry.Write()
|
||||
return
|
||||
}
|
||||
if ctx != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue