- fix elm setToken bug
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package globals
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/logs"
|
||||
_ "github.com/go-sql-driver/mysql" // import your used driver
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
@@ -10,6 +13,10 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
logs.SetLogFuncCallDepth(3)
|
||||
beego.BConfig.Log.AccessLogs = true
|
||||
|
||||
logger, _ := zap.NewDevelopment()
|
||||
SugarLogger = logger.Sugar()
|
||||
baseapi.Init(SugarLogger)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user