Log route source and internal url on error

This commit is contained in:
Melon 2024-08-28 19:53:56 +01:00
parent ecee594219
commit aa77dccaaf
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -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
}