Merge pull request #4815 from owncloud/requestID

harden drives api and improve logging
This commit is contained in:
Michael Barz authored and GitHub committed 2022-10-17 20:23:50 +02:00
commit d965f23fd9
15 files changed
+440 -194

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ func AccessLog(logger log.Logger) func(http.Handler) http.Handler {
logger.Info().
Str("proto", r.Proto).
Str("request", chimiddleware.GetReqID(r.Context())).
Str(log.RequestIDString, chimiddleware.GetReqID(r.Context())).
Str("remote-addr", r.RemoteAddr).
Str("method", r.Method).
Int("status", wrap.Status()).