Timestamp syncreport and exception log files.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user