Skip to content

Commit

Permalink
Update LogStreamManager.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchitmehta committed Jun 4, 2019
1 parent f65680d commit fe5ca50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Kudu.Services/Diagnostics/LogStreamManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public async Task ProcessRequest(HttpContext context)

if (_logFiles != null)
{
NotifyClientWithLineBreak("Starting Log Tail -n 10 of exisitng logs ----", context);
NotifyClientWithLineBreak("Starting Log Tail -n 10 of existing logs ----", context);

foreach (string log in _logFiles.Keys)
{
Expand All @@ -149,7 +149,7 @@ public async Task ProcessRequest(HttpContext context)
}
await context.Response.WriteAsync(System.Environment.NewLine);
}
NotifyClientWithLineBreak("Ending Log Tail of exisitng logs ---", context);
NotifyClientWithLineBreak("Ending Log Tail of existing logs ---", context);
}
else
{
Expand Down Expand Up @@ -251,7 +251,7 @@ private static bool shouldMonitiorMountedLogsPath(string mountedDirPath)
// use this directory; first file for a date is the marker file
foreach (var file in Directory.GetFiles(mountedDirPath, "*", SearchOption.AllDirectories))
{
if (file.StartsWith(dateToday) && ++count > 1)
if (file.Contains(dateToday) && ++count > 1)
{
break;
}
Expand Down

0 comments on commit fe5ca50

Please sign in to comment.