Compare commits
2
Commits
main
..
d71c88498b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d71c88498b | ||
|
|
c5a91cf647 |
@@ -797,14 +797,8 @@ func (h *Handler) setupCAGProxy(ctx context.Context, w http.ResponseWriter, r *h
|
|||||||
if resp.StatusCode < http.StatusBadRequest {
|
if resp.StatusCode < http.StatusBadRequest {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
body, readErr := io.ReadAll(io.LimitReader(resp.Body, 4096))
|
body, _ := io.ReadAll(io.LimitReader(resp.Body, 4096))
|
||||||
resp.Body.Close()
|
resp.Body.Close()
|
||||||
if readErr != nil {
|
|
||||||
logging.Warnf("reading upstream error body failed", map[string]string{
|
|
||||||
"upstream": capturedRoute.Upstream.Address,
|
|
||||||
"err": readErr.Error(),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
logging.Warnf("upstream error after parked stream started", map[string]string{
|
logging.Warnf("upstream error after parked stream started", map[string]string{
|
||||||
"upstream": capturedRoute.Upstream.Address,
|
"upstream": capturedRoute.Upstream.Address,
|
||||||
"status": strconv.Itoa(resp.StatusCode),
|
"status": strconv.Itoa(resp.StatusCode),
|
||||||
|
|||||||
Reference in New Issue
Block a user