From aa77dccaaf4965bc1d679c1c7271e3e80c050ae0 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Wed, 28 Aug 2024 19:53:56 +0100 Subject: [PATCH] Log route source and internal url on error --- target/route.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/route.go b/target/route.go index c0cfca5..6d1d25a 100644 --- a/target/route.go +++ b/target/route.go @@ -181,7 +181,7 @@ func (r Route) internalServeHTTP(rw http.ResponseWriter, req *http.Request) { resp, err = r.Proxy.SecureRoundTrip(req2) } if err != nil { - Logger.Warn("Error receiving internal round trip response", "err", err) + Logger.Warn("Error receiving internal round trip response", "route src", r.Src, "url", req2.URL.String(), "err", err) utils.RespondVioletError(rw, http.StatusBadGateway, "error receiving internal round trip response") return }