Skip to content

Commit d57d7dc

Browse files
committed
chore: change log messages
1 parent 4a90d24 commit d57d7dc

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

SimpleNetworkManager.NET/Network/BaseNetworkClient.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)