添加日志打印

This commit is contained in:
邹宗楠
2022-08-03 11:37:59 +08:00
parent c25f161f99
commit e92ee33ee0

View File

@@ -4,6 +4,7 @@ import (
"flag"
"fmt"
"git.rosy.net.cn/jx-callback/controllers"
"git.rosy.net.cn/jx-callback/globals"
_ "net/http/pprof"
"os"
"time"
@@ -85,6 +86,7 @@ func checkCmdFlags() bool {
func main() {
Init()
globals.SugarLogger.Debug("====================================api")
//先打开swagger
//if beego.BConfig.RunMode != "prod" {
beego.BConfig.WebConfig.DirectoryIndex = true