From 1d89c089c18afb237c510751757c0721ab06e195 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Wed, 27 Nov 2024 13:42:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97=E7=BA=A7?= =?UTF-8?q?=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etcd/register.go | 4 ++-- mq/export.go | 4 ++-- worldsrv/customroommgr.go | 14 +++++++------- worldsrv/lotterymgr.go | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/etcd/register.go b/etcd/register.go index dc22dc2..c52e9cf 100644 --- a/etcd/register.go +++ b/etcd/register.go @@ -42,7 +42,7 @@ func Register(key string, msgType interface{}, f func(ctx context.Context, compl logger.Logger.Errorf("ETCD %v proto.Unmarshal error:%v", key, err) continue } - logger.Logger.Tracef("ETCD 拉取成功 %v ==> %v", string(res.Kvs[i].Key), d) + logger.Logger.Debugf("ETCD 拉取成功 %v ==> %v", string(res.Kvs[i].Key), d) event := &clientv3.Event{ Type: 0, } @@ -53,7 +53,7 @@ func Register(key string, msgType interface{}, f func(ctx context.Context, compl logger.Logger.Errorf("ETCD %v josn.Unmarshal error:%v", key, err) continue } - logger.Logger.Tracef("ETCD 拉取成功 %v ==> %v", string(res.Kvs[i].Key), d) + logger.Logger.Debugf("ETCD 拉取成功 %v ==> %v", string(res.Kvs[i].Key), d) event := &clientv3.Event{ Type: 0, } diff --git a/mq/export.go b/mq/export.go index 90967c9..bdb4b59 100644 --- a/mq/export.go +++ b/mq/export.go @@ -108,7 +108,7 @@ func (c *MessageMgr) RegisterHandler(param *RegisterHandlerParam) { logger.Logger.Errorf("RabbitMQ Unmarshal error: %v", err) return } - logger.Logger.Tracef("==> Receive RabbitMQ(%v): %#v", param.Name, log) + logger.Logger.Tracef("MQ Receive[%v]: %#v", param.Name, log) return c.handler[param.Name].F(log) } @@ -178,7 +178,7 @@ func StopPublisher() { func Send(topic string, msg interface{}, opts ...broker.PublishOption) (err error) { if globalPublisher != nil { - logger.Logger.Tracef("==> RabbitMQ(%v): %#v", topic, msg) + logger.Logger.Tracef("MQ Send[%v]: %#v", topic, msg) return globalPublisher.Send(topic, msg, opts...) } logger.Logger.Errorf("RabbitMQPublisher not start!") diff --git a/worldsrv/customroommgr.go b/worldsrv/customroommgr.go index 0445cf3..faae884 100644 --- a/worldsrv/customroommgr.go +++ b/worldsrv/customroommgr.go @@ -137,7 +137,7 @@ func (c *CustomRoomMgr) GetRoomList(plt string) []*gamehall.PrivateRoomInfo { } func (c *CustomRoomMgr) tryCreate(plt string, configId int32) { - logger.Logger.Tracef("尝试创建竞技馆系统房间 %v CloseCustomRoomCreate:%v", configId, model.GameParamData.CloseCustomRoomCreate) + logger.Logger.Debugf("尝试创建竞技馆系统房间 %v CloseCustomRoomCreate:%v", configId, model.GameParamData.CloseCustomRoomCreate) cfg := PlatformMgrSingleton.GetConfig(plt).RoomConfigSystem[configId] if model.GameParamData.CloseCustomRoomCreate || cfg == nil || cfg.GetOn() == common.Off { return @@ -162,7 +162,7 @@ func (c *CustomRoomMgr) tryCreate(plt string, configId int32) { } func (c *CustomRoomMgr) TryDestroy(plt string, configId int32) { - logger.Logger.Tracef("尝试解散竞技馆系统房间 %v", configId) + logger.Logger.Debugf("尝试解散竞技馆系统房间 %v", configId) cfg := PlatformMgrSingleton.GetConfig(plt).RoomConfigSystem[configId] if cfg == nil { return @@ -190,7 +190,7 @@ func (c *CustomRoomMgr) TryDestroy(plt string, configId int32) { } func (c *CustomRoomMgr) Release(plt string, configId int32) { - logger.Logger.Tracef("释放竞技馆房间创建记录 %v", configId) + logger.Logger.Debugf("释放竞技馆房间创建记录 %v", configId) v, ok := c.data[plt] if !ok || v == nil { return @@ -261,7 +261,7 @@ func (c *CustomRoomMgr) UpdateCreate(plt string, configId int32, mustCreate bool } if cfg.GetAutoCreate() == 1 || mustCreate { - logger.Logger.Tracef("Update 竞技馆系统房间创建 %v", configId) + logger.Logger.Debugf("Update 竞技馆系统房间创建 %v", configId) f(func() { gf = PlatformMgrSingleton.GetGameFree(plt, cfg.GetGameFreeId()) if gf == nil || !gf.GetStatus() || cfg.GetOn() == common.Off { @@ -307,7 +307,7 @@ func (c *CustomRoomMgr) UpdateCreate(plt string, configId int32, mustCreate bool IsRecruit: true, }) if scene != nil { - logger.Logger.Tracef("竞技馆系统房间创建成功 roomId:%v", scene.sceneId) + logger.Logger.Debugf("竞技馆系统房间创建成功 roomId:%v", scene.sceneId) csp.AddScene(scene) info.Scene = scene } else { @@ -339,7 +339,7 @@ func (c *CustomRoomMgr) UpdateCreate(plt string, configId int32, mustCreate bool }) } info.Notify(common.ListAdd) - logger.Logger.Tracef("竞技馆假房间创建成功 %v", info.PrivateRoomInfo) + logger.Logger.Debugf("竞技馆假房间创建成功 %v", info.PrivateRoomInfo) if cfg.FullTime <= 0 { cfg.FullTime = int32(model.GameParamData.SceneMaxIdle) } @@ -347,7 +347,7 @@ func (c *CustomRoomMgr) UpdateCreate(plt string, configId int32, mustCreate bool cfg.FullTime = 3 // 至少3秒 } b, _ := timer.AfterTimer(func(h timer.TimerHandle, ud interface{}) bool { - logger.Logger.Tracef("竞技馆假房间解散 %v", info) + logger.Logger.Debugf("竞技馆假房间解散 %v", info) c.Release(plt, configId) c.UpdateCreate(plt, configId, false) return true diff --git a/worldsrv/lotterymgr.go b/worldsrv/lotterymgr.go index e655863..b04a6d2 100644 --- a/worldsrv/lotterymgr.go +++ b/worldsrv/lotterymgr.go @@ -120,7 +120,7 @@ func (l *LotteryData) Reset() { l.CostCard = 0 l.RobotCodeCount = 0 l.PlayerNum = 0 - logger.Logger.Tracef("LotteryData Reset: %v", l.CId) + logger.Logger.Debugf("LotteryData Reset: %v", l.CId) } // GetCode 获取抽奖码