Timestamp syncreport and exception log files.

This commit is contained in:
Paul Chote
2016-09-21 04:54:25 +01:00
parent c1e1ee0938
commit b44d1be554
2 changed files with 4 additions and 2 deletions

View File

@@ -48,7 +48,8 @@ namespace OpenRA
static void FatalError(Exception ex)
{
Log.AddChannel("exception", "exception.log");
var exceptionName = "exception-" + DateTime.UtcNow.ToString("yyyy-MM-ddTHHmmssZ") + ".log";
Log.AddChannel("exception", exceptionName);
if (Game.ModData != null)
{