We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8a0b15 commit 0bcbed7Copy full SHA for 0bcbed7
logentries/utils.py
@@ -1,4 +1,4 @@
1
-VERSION = '1.0'
+VERSION = '2.0.1'
2
3
import logging
4
import Queue
@@ -81,7 +81,10 @@ def run(self):
81
data = self._queue.get(block=True)
82
83
# Replace newlines with Unicode line separator for multi-line events
84
- multiline = unicode(data, "utf-8").replace('\n', '\u2028')
+ if not isinstance(data, unicode):
85
+ multiline = unicode(data, "utf-8").replace('\n', '\u2028')
86
+ else:
87
+ multiline = data.replace('\n', '\u2028')
88
multiline += "\n"
89
# Send data, reconnect if needed
90
while True:
0 commit comments