Skip to content

Commit

Permalink
Merge pull request #3 from spoqa/fix-double-encode
Browse files Browse the repository at this point in the history
Not to encode the payload
  • Loading branch information
kanghyojun committed Sep 7, 2018
2 parents 3961daf + ff9a664 commit fca3233
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Changelog

To be released

- Fixed the bug caused by doubly encoded record.


0.1.0
=====
Expand Down
3 changes: 1 addition & 2 deletions firefighter/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from __future__ import (absolute_import, division, print_function,
unicode_literals)

import base64
import logging
import threading
import time
Expand Down Expand Up @@ -108,7 +107,7 @@ def _submit_batch(self, batch, delivery_stream_name, max_retries=5):
response = None
kwargs = {
'DeliveryStreamName': delivery_stream_name,
'Records': [{'Data': base64.b64encode(data)} for data in batch]
'Records': [{'Data': data} for data in batch]
}
for retry in range(max_retries):
try:
Expand Down

0 comments on commit fca3233

Please sign in to comment.