File tree Expand file tree Collapse file tree
SimpleNetworkManager.NET/Network Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,13 +44,11 @@ protected virtual void OnClientDisconnected(BaseClientConnection clientConnectio
4444 clientConnection . Disconnected -= OnClientDisconnected ;
4545 clientConnection . MessageReceived -= OnClientMessageReceived ;
4646
47- _logger . LogInformation ( "Client disconnected: ConnectionId={ConnectionId}" ,
48- clientConnection . ConnectionId ) ;
47+ _logger . LogInformation ( "Client disconnected from server" ) ;
4948 }
5049 catch ( Exception ex )
5150 {
52- _logger . LogWarning ( ex , "Error handling client disconnection for ConnectionId={ConnectionId}" ,
53- clientConnection . ConnectionId ) ;
51+ _logger . LogWarning ( ex , "Error handling client disconnection from server" ) ;
5452 }
5553 }
5654
@@ -63,14 +61,14 @@ protected virtual async void OnClientMessageReceived(BaseClientConnection client
6361 {
6462 try
6563 {
66- _logger . LogDebug ( "Received message from client {ConnectionId}" , clientConnection . ConnectionId ) ;
64+ _logger . LogDebug ( "Received message from server" ) ;
6765
6866 // Route the message to the appropriate handler
6967 await _messageRouter . RouteMessageAsync ( clientConnection , message ) ;
7068 }
7169 catch ( Exception ex )
7270 {
73- _logger . LogError ( ex , "Error processing message from client {ConnectionId}" , clientConnection . ConnectionId ) ;
71+ _logger . LogError ( ex , "Error processing message from server" ) ;
7472 }
7573 }
7674
You can’t perform that action at this time.
0 commit comments