Fix page log name isn't unqiue. (#295)

This commit is contained in:
Tingluo Huang
2020-01-21 11:08:37 -05:00
committed by GitHub
parent c59c0e2ded
commit fa2ecfcc4c
2 changed files with 20 additions and 15 deletions

View File

@@ -100,7 +100,7 @@ namespace GitHub.Runner.Common
{
EndPage();
_byteCount = 0;
_dataFileName = Path.Combine(_pagesFolder, $"{_timelineRecordId}_{++_pageCount}.log");
_dataFileName = Path.Combine(_pagesFolder, $"{_timelineId}_{_timelineRecordId}_{++_pageCount}.log");
_pageData = new FileStream(_dataFileName, FileMode.CreateNew);
_pageWriter = new StreamWriter(_pageData, System.Text.Encoding.UTF8);
}