Skip to content

Commit e37f353

Browse files
committed
refactor(日志): 统一客户端连接和断开日志的英文格式
将客户端连接和断开日志中的中文描述改为英文,保持日志格式统一
1 parent ff933d0 commit e37f353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GameFrameX.StartUp/AppStartUpByServer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ protected virtual ValueTask<bool> PackageErrorHandler(IAppSession appSession, Pa
137137
/// <param name="disconnectEventArgs">断开连接的相关参数</param>
138138
protected virtual ValueTask OnDisconnected(IAppSession appSession, CloseEventArgs disconnectEventArgs)
139139
{
140-
LogHelper.Info($"the client disconnects - SessionID: {appSession.SessionID}, 断开原因: {disconnectEventArgs.Reason}");
140+
LogHelper.Info($"the client disconnects - SessionID: {appSession.SessionID}, remote terminal: {appSession.RemoteEndPoint}, disconnect cause: {disconnectEventArgs.Reason}");
141141
return ValueTask.CompletedTask;
142142
}
143143

@@ -147,7 +147,7 @@ protected virtual ValueTask OnDisconnected(IAppSession appSession, CloseEventArg
147147
/// <param name="appSession">新建立的会话对象</param>
148148
protected virtual ValueTask OnConnected(IAppSession appSession)
149149
{
150-
LogHelper.Info($"new client connection - SessionID: {appSession.SessionID}, 远程终端: {appSession.RemoteEndPoint}");
150+
LogHelper.Info($"new client connection - SessionID: {appSession.SessionID}, remote terminal: {appSession.RemoteEndPoint}");
151151
return ValueTask.CompletedTask;
152152
}
153153

0 commit comments

Comments
 (0)