Skip to content

Commit

Permalink
Merge pull request #288 from PhantomGamers/patch-1
Browse files Browse the repository at this point in the history
Remove IP addresses from log output
  • Loading branch information
hubastard authored May 6, 2021
2 parents 072ccf0 + 4ae5232 commit 9e036de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NebulaHost/MultiplayerHostSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected override void OnOpen()
return;
}

NebulaModel.Logger.Log.Info($"Client connected ID: {ID}, {Context.UserEndPoint}");
NebulaModel.Logger.Log.Info($"Client connected ID: {ID}");
NebulaConnection conn = new NebulaConnection(Context.WebSocket, Context.UserEndPoint, packetProcessor);
playerManager.PlayerConnected(conn);
}
Expand All @@ -172,7 +172,7 @@ protected override void OnClose(CloseEventArgs e)
if (e.Code == (short)DisconnectionReason.HostStillLoading)
return;

NebulaModel.Logger.Log.Info($"Client disconnected: {Context.UserEndPoint}, reason: {e.Reason}");
NebulaModel.Logger.Log.Info($"Client disconnected: {ID}, reason: {e.Reason}");
UnityDispatchQueue.RunOnMainThread(() =>
{
playerManager.PlayerDisconnected(new NebulaConnection(Context.WebSocket, Context.UserEndPoint, packetProcessor));
Expand Down

0 comments on commit 9e036de

Please sign in to comment.