From 5e98521fbbe96e370692ccb6149519acc7b3ed67 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 21:15:56 +0300 Subject: [PATCH] add debug log --- web/controller/inbound.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/controller/inbound.go b/web/controller/inbound.go index 262a52dd..17fafa19 100644 --- a/web/controller/inbound.go +++ b/web/controller/inbound.go @@ -103,6 +103,16 @@ func (a *InboundController) getClientTrafficsById(c *gin.Context) { // addInbound creates a new inbound configuration. func (a *InboundController) addInbound(c *gin.Context) { + body := c.Request.PostForm.Encode() + defer func() { + err := c.Request.Body.Close() + if err != nil { + logger.Errorf("error closing request body: %v", err) + } + }() + + logger.Debugf("debug request body: %v", body) + inbound := &model.Inbound{} err := c.ShouldBind(inbound) if err != nil {