Add timestamp to exception.log

This commit is contained in:
Curtis Shmyr
2016-07-06 13:49:08 -06:00
parent 921375973e
commit 2fc77a315e

View File

@@ -62,6 +62,7 @@ namespace OpenRA
Log.Write("exception", "on map {0} ({1} by {2}).", map.Uid, map.Title, map.Author); Log.Write("exception", "on map {0} ({1} by {2}).", map.Uid, map.Title, map.Author);
} }
Log.Write("exception", "Date: {0:u}", DateTime.UtcNow);
Log.Write("exception", "Operating System: {0} ({1})", Platform.CurrentPlatform, Environment.OSVersion); Log.Write("exception", "Operating System: {0} ({1})", Platform.CurrentPlatform, Environment.OSVersion);
Log.Write("exception", "Runtime Version: {0}", Platform.RuntimeVersion); Log.Write("exception", "Runtime Version: {0}", Platform.RuntimeVersion);
var rpt = BuildExceptionReport(e).ToString(); var rpt = BuildExceptionReport(e).ToString();