refactor(logging): 统一使用自定义Loger替代g.Log()日志记录
This commit is contained in:
@@ -13,7 +13,6 @@ import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gcmd"
|
||||
"github.com/gogf/gf/v2/os/glog"
|
||||
"github.com/gogf/gf/v2/util/gconv"
|
||||
@@ -213,7 +212,7 @@ func Recv(c *entity.Conn, data handler.TomeeHeader) {
|
||||
|
||||
if ok && aa != nil { //这里实现回复错误包
|
||||
|
||||
g.Log().Error(context.Background(), aa.Error(), aa.Code())
|
||||
cool.Loger.Error(context.Background(), aa.Error(), aa.Code())
|
||||
|
||||
data.Result = uint32(aa.Code())
|
||||
c.SendPack(data.Pack(nil))
|
||||
|
||||
Reference in New Issue
Block a user