From 5ea900ff483f01f7f784bb166fabaf4c1bec6040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Thu, 23 Oct 2025 18:00:37 +0300 Subject: [PATCH] add debug log --- web/service/inbound.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/service/inbound.go b/web/service/inbound.go index f2dced93..1e866279 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -2495,6 +2495,16 @@ func (s *InboundService) syncWithSlaves(method string, path string, contentType } defer resp.Body.Close() + logger.Debugf("Request URL: %s", req.URL.String()) + if req.Body != nil { + bodyBytes, err := io.ReadAll(req.Body) + if err != nil { + logger.Warningf("Failed to read request body: %v", err) + } else { + logger.Debugf("Request body: %s", string(bodyBytes)) + } + } + if resp.StatusCode != http.StatusOK { bodyBytes, _ := io.ReadAll(resp.Body) logger.Warningf("Failed to sync with server %s. Status: %s, Body: %s", server.Name, resp.Status, string(bodyBytes))