From f13165feea5628be6a6713edcf6059a393ca54cb 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 17:24:46 +0300 Subject: [PATCH] try fix err --- web/controller/inbound.go | 3 ++- web/service/inbound.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/controller/inbound.go b/web/controller/inbound.go index c9996a87..d46b3684 100644 --- a/web/controller/inbound.go +++ b/web/controller/inbound.go @@ -5,8 +5,8 @@ import ( "fmt" "strconv" - "github.com/mhsanaei/3x-ui/v2/database/model" + "github.com/mhsanaei/3x-ui/v2/logger" "github.com/mhsanaei/3x-ui/v2/web/service" "github.com/mhsanaei/3x-ui/v2/web/session" @@ -131,6 +131,7 @@ func (a *InboundController) addInbound(c *gin.Context) { // delInbound deletes an inbound configuration by its ID. func (a *InboundController) delInbound(c *gin.Context) { id, err := strconv.Atoi(c.Param("id")) + defer logger.Debugf("debug err", err) if err != nil { jsonMsg(c, I18nWeb(c, "pages.inbounds.toasts.inboundDeleteSuccess"), err) return diff --git a/web/service/inbound.go b/web/service/inbound.go index 867e131e..f2dced93 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -2499,7 +2499,7 @@ func (s *InboundService) syncWithSlaves(method string, path string, contentType bodyBytes, _ := io.ReadAll(resp.Body) logger.Warningf("Failed to sync with server %s. Status: %s, Body: %s", server.Name, resp.Status, string(bodyBytes)) } - logger.Infof("Synced inbound %v to server %v (%v)", bodyData.(*model.Inbound).Tag, server.Name, resp.Status) + //logger.Infof("Synced inbound %v to server %v (%v)", bodyData.(*model.Inbound).Tag, server.Name, resp.Status) } }