- fix elm setToken bug

This commit is contained in:
gazebo
2018-06-29 18:11:01 +08:00
parent 30d77cad2e
commit 76b02763ec
4 changed files with 12 additions and 13 deletions

View File

@@ -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)
}