diff options
Diffstat (limited to 'logger.go')
-rw-r--r-- | logger.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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(), |