mirror of
https://gitlab.durp.info/durfy/modules/durpify.git
synced 2026-05-07 08:00:30 -05:00
formating
This commit is contained in:
parent
b4562a1da4
commit
3573b46fd9
3 changed files with 63 additions and 15 deletions
|
|
@ -27,6 +27,12 @@ func Logging(next http.Handler) http.Handler {
|
|||
}
|
||||
|
||||
next.ServeHTTP(wrapped, r)
|
||||
log.Error("INFO", wrapped.statusCode, r.Method, r.URL.Path, time.Since(start))
|
||||
log.Error(
|
||||
"INFO",
|
||||
wrapped.statusCode,
|
||||
r.Method,
|
||||
r.URL.Path,
|
||||
time.Since(start),
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue