Merge pull request #1281 from jorgemarcial/master

Fix Error in get-logs request LogEvent instance is not JSON serializable
This commit is contained in:
Jack Danger 2017-10-23 09:46:22 -07:00 committed by GitHub
commit b5f74d08f3

View File

@ -89,7 +89,7 @@ class LogsResponse(BaseResponse):
self.logs_backend.get_log_events(log_group_name, log_stream_name, start_time, end_time, limit, next_token, start_from_head)
return json.dumps({
"events": events,
"events": [ob.__dict__ for ob in events],
"nextBackwardToken": next_backward_token,
"nextForwardToken": next_foward_token
})