diff options
author | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-07-28 19:32:33 +0300 |
---|---|---|
committer | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-07-28 19:32:33 +0300 |
commit | 18a9096684ab0b1468a08d442d38b7b675d94810 (patch) | |
tree | 16e335e56ac0bf7986c3fbcd924f2ac0e00106f8 /logger.go | |
parent | 25160ef84704c0f4ef6e8c6cf2e282e216701139 (diff) |
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(), |