summaryrefslogtreecommitdiff
path: root/logger.go
diff options
context:
space:
mode:
Diffstat (limited to 'logger.go')
-rw-r--r--logger.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/logger.go b/logger.go
index 039bd19..065a6a7 100644
--- a/logger.go
+++ b/logger.go
@@ -15,9 +15,7 @@ func Logger(logger *slog.Logger) Middleware {
slog.String("proto", r.Proto),
slog.String("method", r.Method),
slog.String("request_uri", r.RequestURI),
- }
- if requestID != "" {
- args = append(args, slog.String("request_id", requestID))
+ slog.String("request_id", requestID),
}
logger.InfoContext(
r.Context(),