Skip to content

Commit

Permalink
Use GUIDs instead of ticks for debug log filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
gbirchmeier committed Mar 9, 2020
1 parent 82a4537 commit 544c87e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion QuickFIXn/ClientHandlerThread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public ClientHandlerThread(TcpClient tcpClient, long clientId, QuickFix.Dictiona
debugLogFilePath = settingsDict.GetString(SessionSettings.FILE_LOG_PATH);

// FIXME - do something more flexible than hardcoding a filelog
log_ = new FileLog(debugLogFilePath, new SessionID("ClientHandlerThread", DateTime.UtcNow.Ticks.ToString(), "Debug"));
log_ = new FileLog(debugLogFilePath, new SessionID(
"ClientHandlerThread", clientId.ToString(), "Debug-" + Guid.NewGuid().ToString()));
//log_ = new FileLog(debugLogFilePath, new SessionID("ClientHandlerThread", clientId.ToString(), "Debug"));

this.Id = clientId;
socketReader_ = new SocketReader(tcpClient, socketSettings, this);
Expand Down

0 comments on commit 544c87e

Please sign in to comment.