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

@@ -92,7 +92,8 @@ namespace OpenRA.Network
internal void DumpSyncReport(int frame, IEnumerable<FrameData.ClientOrder> orders) internal void DumpSyncReport(int frame, IEnumerable<FrameData.ClientOrder> orders)
{ {
Log.AddChannel("sync", "syncreport.log"); var reportName = "syncreport-" + DateTime.UtcNow.ToString("yyyy-MM-ddTHHmmssZ") + ".log";
Log.AddChannel("sync", reportName);
foreach (var r in syncReports) foreach (var r in syncReports)
{ {

View File

@@ -48,7 +48,8 @@ namespace OpenRA
static void FatalError(Exception ex) 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) if (Game.ModData != null)
{ {