修改:1、gin的run函数增加故障码的打印

This commit is contained in:
pengwang 2021-02-22 20:59:50 +08:00
parent 874436ad50
commit 39c8fbad0a
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package httpServer
import (
"github.com/gin-gonic/gin"
"goAdapter/setting"
"os"
"path/filepath"
)
@ -161,5 +162,7 @@ func RouterWeb() {
}
}
router.Run(":8080")
if err := router.Run(":8080"); err != nil {
setting.Logger.Errorf("gin run err,%v", err)
}
}