mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-11-29 02:42:51 +00:00
add debug log
This commit is contained in:
parent
1f3a7c947a
commit
5e98521fbb
1 changed files with 10 additions and 0 deletions
|
|
@ -103,6 +103,16 @@ func (a *InboundController) getClientTrafficsById(c *gin.Context) {
|
||||||
|
|
||||||
// addInbound creates a new inbound configuration.
|
// addInbound creates a new inbound configuration.
|
||||||
func (a *InboundController) addInbound(c *gin.Context) {
|
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{}
|
inbound := &model.Inbound{}
|
||||||
err := c.ShouldBind(inbound)
|
err := c.ShouldBind(inbound)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue