refactor(logging): 统一使用自定义Loger替代g.Log()日志记录
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
|
||||
_ "blazing/modules/dict/packed"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gctx"
|
||||
|
||||
_ "blazing/modules/dict/controller"
|
||||
@@ -16,8 +15,8 @@ func init() {
|
||||
var (
|
||||
ctx = gctx.GetInitCtx()
|
||||
)
|
||||
g.Log().Debug(ctx, "module dict init start ...")
|
||||
cool.Loger.Debug(ctx, "module dict init start ...")
|
||||
cool.FillInitData(ctx, "dict", &model.DictInfo{}, nil)
|
||||
cool.FillInitData(ctx, "dict", &model.DictType{}, nil)
|
||||
g.Log().Debug(ctx, "module dict init finished ...")
|
||||
cool.Loger.Debug(ctx, "module dict init finished ...")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user