adjustments to reporting
continuous-integration/drone/push Build is passing

This commit is contained in:
nathan committed 2026-01-14 10:23:25 +11:00
1 parent 7b600b2359
commit b297b8293c
11 files changed
+305 -7

No files matched your search

+5
View File
@@ -25,10 +25,15 @@ func (l *LoggingMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request) {
start := time.Now()
l.handler.ServeHTTP(w, r)
query := r.URL.RawQuery
if query == "" {
query = "-"
}
l.logger.Debug(
"Request recieved",
slog.String("method", r.Method),
slog.String("path", r.URL.Path),
slog.String("query", query),
slog.String("remote", r.RemoteAddr),
slog.Duration("duration", time.Since(start)),
)