From 18a9096684ab0b1468a08d442d38b7b675d94810 Mon Sep 17 00:00:00 2001 From: Alexander NeonXP Kiryukhin Date: Sun, 28 Jul 2024 19:32:33 +0300 Subject: Session middleware --- logger.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'logger.go') 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(), -- cgit v1.2.3