mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-11-29 02:42:51 +00:00
add debug err log
This commit is contained in:
parent
1503e5cf37
commit
153f7e6053
1 changed files with 3 additions and 0 deletions
|
|
@ -123,6 +123,9 @@ func (a *InboundController) addInbound(c *gin.Context) {
|
|||
|
||||
inbound := &model.Inbound{}
|
||||
err := c.ShouldBind(inbound)
|
||||
defer func() {
|
||||
logger.Debugf("debug err: %v", err)
|
||||
}()
|
||||
if err != nil {
|
||||
jsonMsg(c, I18nWeb(c, "somethingWentWrong"), err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue