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) } }