Merge pull request #2428 from mangin/get_log_events_problem

fix tail message problem in get_log_events
This commit is contained in:
Steve Pulec 2019-09-23 21:44:36 -05:00 committed by GitHub
commit 86fc340ffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -115,6 +115,8 @@ class LogStream:
events_page = [event.to_response_dict() for event in events[next_index: next_index + limit]]
if next_index + limit < len(self.events):
next_index += limit
else:
next_index = len(self.events)
back_index -= limit
if back_index <= 0: