Skip to content

Instantly share code, notes, and snippets.

@CherryDT
Last active July 31, 2017 12:39
Show Gist options
  • Save CherryDT/0cdddc5a0ac8c16c84d17e8cd035e5c1 to your computer and use it in GitHub Desktop.
Save CherryDT/0cdddc5a0ac8c16c84d17e8cd035e5c1 to your computer and use it in GitHub Desktop.
@@ -116,7 +116,7 @@
def format(self, filename, line, timestamp, **kwargs):
"""Returns a formatted log line"""
- line = unicode(line.encode("utf-8")[:32766], "utf-8", errors="ignore")
+ line = unicode(line.encode("utf-8"), "utf-8", errors="ignore")
formatter = self._beaver_config.get_field('format', filename)
if formatter not in self._formatters:
formatter = self._default_formatter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment