Maint: simplify warning logging in http proxy

This commit is contained in:
Quentin McGaw (desktop)
2021-09-30 16:01:02 +00:00
parent 0c4f0ec17b
commit 85ad2dd39a

View File

@@ -32,8 +32,7 @@ func (h *handler) handleHTTP(responseWriter http.ResponseWriter, request *http.R
response, err := h.client.Do(request) response, err := h.client.Do(request)
if err != nil { if err != nil {
http.Error(responseWriter, "server error", http.StatusInternalServerError) http.Error(responseWriter, "server error", http.StatusInternalServerError)
h.logger.Warn("cannot request " + request.URL.String() + h.logger.Warn("cannot process request for client " + request.RemoteAddr + ": " + err.Error())
" for client " + request.RemoteAddr + ": " + err.Error())
return return
} }
defer response.Body.Close() defer response.Body.Close()