修改:1、gin的run函数增加故障码的打印
This commit is contained in:
parent
874436ad50
commit
39c8fbad0a
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue