Merge pull request #1774 from chrisLeeTW/cloudwatch-sequenceToken-hotfix

nextSequenceToken that return by cloudwatch logs putLogEvents should be string, not int.
This commit is contained in:
Steve Pulec 2018-09-22 17:16:53 -04:00 committed by GitHub
commit 2abbecee71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -86,7 +86,7 @@ class LogStream:
self.events += [LogEvent(self.lastIngestionTime, log_event) for log_event in log_events]
self.uploadSequenceToken += 1
return self.uploadSequenceToken
return '{:056d}'.format(self.uploadSequenceToken)
def get_log_events(self, log_group_name, log_stream_name, start_time, end_time, limit, next_token, start_from_head):
def filter_func(event):