summaryrefslogtreecommitdiff
path: root/logger.go
diff options
context:
space:
mode:
authorAlexander NeonXP Kiryukhin <i@neonxp.ru>2024-07-28 19:32:33 +0300
committerAlexander NeonXP Kiryukhin <i@neonxp.ru>2024-07-28 19:32:33 +0300
commit18a9096684ab0b1468a08d442d38b7b675d94810 (patch)
tree16e335e56ac0bf7986c3fbcd924f2ac0e00106f8 /logger.go
parent25160ef84704c0f4ef6e8c6cf2e282e216701139 (diff)
Session middlewareHEADmaster
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(),