Add missing context to logger calls

This commit is contained in:
Deluan
2022-11-04 11:29:58 -04:00
parent daa428ede7
commit 9c433b5d68
11 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ func h(r chi.Router, path string, f handler) {
}
if r.Context().Err() != nil {
if log.CurrentLevel() >= log.LevelDebug {
log.Warn("Request was interrupted", "path", path, r.Context().Err())
log.Warn(r.Context(), "Request was interrupted", "path", path, r.Context().Err())
}
return
}