Skip to content

Commit

Permalink
Tactical fix for #929
Browse files Browse the repository at this point in the history
Proper fix comes once https://github.com/projectkudu/AzureFunctionsPortal/issues/634is fixed and then we can remove the whole function.
  • Loading branch information
MikeStall committed Nov 30, 2016
1 parent 663a508 commit 6fa4de4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Microsoft.Azure.WebJobs.Logging/Internal/LogReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@ DateTime endTime
var segment = await SafeExecuteQuerySegmentedAsync(rangeQuery, startTime, endTime, continuationToken);

list.AddRange(segment.Results);

if (rangeQuery.TakeCount.HasValue)
{
// Don't need to return more entries than were requested.
if (list.Count >= rangeQuery.TakeCount.Value)
{
segment.ContinuationToken = null;
}
}

if (segment.ContinuationToken == null)
{
// Done!
Expand Down

0 comments on commit 6fa4de4

Please sign in to comment.