Skip to content

Commit

Permalink
Improve NAT logging (OpenRA#21611)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterMind2k authored Oct 7, 2024
1 parent 79ae71a commit 6dd076b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OpenRA.Game/Network/Nat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public static bool TryForwardPort(int listen, int external)
}
catch (Exception e)
{
Console.WriteLine("Port forwarding failed: {0}", e.Message);
Log.Write("nat", e.StackTrace);
Log.Write("nat", "Port forwarding failed.");
Log.Write("nat", e);
return false;
}

Expand All @@ -90,8 +90,8 @@ public static bool TryRemovePortForward()
}
catch (Exception e)
{
Console.WriteLine("Port removal failed: {0}", e.Message);
Log.Write("nat", e.StackTrace);
Log.Write("nat", "Port removal failed.");
Log.Write("nat", e);
return false;
}

Expand Down

0 comments on commit 6dd076b

Please sign in to comment.