From 8443ea90f805c1e9566e9cc4e95d3db0907f38ac Mon Sep 17 00:00:00 2001 From: Simon Rozet Date: Thu, 21 Sep 2023 11:38:47 +0200 Subject: [PATCH] fix duplicate log attribute --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7fb631d..b5e5dc5 100644 --- a/main.go +++ b/main.go @@ -240,7 +240,7 @@ func tsproxy(ctx context.Context) error { Handler: promhttp.InstrumentHandlerInFlight(requestsInFlight.With(prometheus.Labels{"upstream": upstream.name}), promhttp.InstrumentHandlerDuration(duration.MustCurryWith(prometheus.Labels{"upstream": upstream.name}), promhttp.InstrumentHandlerCounter(requests.MustCurryWith(prometheus.Labels{"upstream": upstream.name}), - newReverseProxy(log.With(slog.String("upstream", upstream.name)), lc, upstream.backend)))), + newReverseProxy(log, lc, upstream.backend)))), } g.Add(func() error { -- 2.51.2