Only save a syncreport.log when a desync occurs.

This commit is contained in:
Matthias Mailänder
2016-09-05 21:59:50 +02:00
parent c9474a857a
commit 66f4db93c1
2 changed files with 1 additions and 1 deletions

View File

@@ -260,7 +260,6 @@ namespace OpenRA
Log.AddChannel("perf", "perf.log");
Log.AddChannel("debug", "debug.log");
Log.AddChannel("sync", "syncreport.log");
Log.AddChannel("server", "server.log");
Log.AddChannel("sound", "sound.log");
Log.AddChannel("graphics", "graphics.log");

View File

@@ -97,6 +97,7 @@ namespace OpenRA.Network
if (r.Frame == frame)
{
var mod = Game.ModData.Manifest.Metadata;
Log.AddChannel("sync", "syncreport.log");
Log.Write("sync", "Player: {0} ({1} {2} {3})", Game.Settings.Player.Name, Platform.CurrentPlatform, Environment.OSVersion, Platform.RuntimeVersion);
Log.Write("sync", "Game ID: {0} (Mod: {1} at Version {2})", orderManager.LobbyInfo.GlobalSettings.GameUid, mod.Title, mod.Version);
Log.Write("sync", "Sync for net frame {0} -------------", r.Frame);