Skip to content

Commit

Permalink
lenient log glob
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Feb 22, 2024
1 parent 2f4365b commit 6d4d3a1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ private LongRunningArguments CreateStartArgs()
public void IterateOverLog(Action<string> write)
{
var logFile = DotNetRunApplication.LogDirectory
.GetFiles($"{_app.Process.Binary}_*.log")
//TODO get last of this app specifically
//.GetFiles($"{_app.Process.Binary}_*.log")
.GetFiles($"_*.log")
.MaxBy(f => f.CreationTimeUtc);

if (logFile == null)
Expand Down

0 comments on commit 6d4d3a1

Please sign in to comment.