mirror of
https://github.com/1f349/violet.git
synced 2024-11-21 19:01:39 +00:00
Log route source and internal url on error
This commit is contained in:
parent
ecee594219
commit
aa77dccaaf
@ -181,7 +181,7 @@ func (r Route) internalServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
|||||||
resp, err = r.Proxy.SecureRoundTrip(req2)
|
resp, err = r.Proxy.SecureRoundTrip(req2)
|
||||||
}
|
}
|
||||||
if err != nil {
|
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")
|
utils.RespondVioletError(rw, http.StatusBadGateway, "error receiving internal round trip response")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user