add debug err log

This commit is contained in:
Дмитрий Саенко 2025-10-25 14:48:01 +03:00
parent 1503e5cf37
commit 153f7e6053

View file

@ -123,6 +123,9 @@ func (a *InboundController) addInbound(c *gin.Context) {
inbound := &model.Inbound{} inbound := &model.Inbound{}
err := c.ShouldBind(inbound) err := c.ShouldBind(inbound)
defer func() {
logger.Debugf("debug err: %v", err)
}()
if err != nil { if err != nil {
jsonMsg(c, I18nWeb(c, "somethingWentWrong"), err) jsonMsg(c, I18nWeb(c, "somethingWentWrong"), err)
return return