chore[log]: router log

This commit is contained in:
godotg
2024-02-01 10:48:21 +08:00
parent 36f90c8a69
commit 22b01145c4
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -93,8 +93,9 @@ setAcl /digest digest:jaysunxiao:123456:crwda
1.下载windows下的zookeeper安装包并解压到任意目录
2.加入conf目录,重命名zoo_sample.cfg为zoo.cfg
3.编辑zoo.cfg
dataDir=D:\\Java\\zookeeper-3.4.10\\zookeeper-3.4.10\\data # 存储数据的目录
dataLogDir=D:\\Java\\zookeeper-3.4.10\\zookeeper-3.4.10\\logs # 日志目录
dataDir=../data-zookeeper
admin.serverPort=18385
4.将java命令更换为javaw后台运行
```
## 二、Linux下的安装
@@ -129,7 +129,7 @@ public class Router implements IRouter {
// 这里是:别的服务提供者提供授权给网关,比如:在玩家登录后,home服查到了玩家uid,然后发给Gateway服
var gatewaySession = NetContext.getSessionManager().getServerSession(gatewayAttachment.getSid());
if (gatewaySession == null) {
logger.warn("gateway receives packet:[{}] and attachment:[{}] from server" + ", but serverSessionMap has no session[id:{}], perhaps client disconnected from gateway.", JsonUtils.object2String(packet), JsonUtils.object2String(attachment), gatewayAttachment.getSid());
logger.error("gateway receives packet:[{}] and attachment:[{}] from server" + ", but serverSessionMap has no session[id:{}], perhaps client disconnected from gateway.", JsonUtils.object2String(packet), JsonUtils.object2String(attachment), gatewayAttachment.getSid());
return;
}
send(gatewaySession, packet, gatewayAttachment.getSignalAttachment());