From: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Date: Fri, 20 Aug 2010 08:43:22 +0000 (+0000)
Subject: Issue #7077: Fixed bug in previous fix.
X-Git-Tag: v3.2a2~196
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89d8f82d01b7d0191c07d5553979ffe53d55cf6e;p=python

Issue #7077: Fixed bug in previous fix.
---

diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index dc2d973a64..5f838e57e5 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -770,7 +770,7 @@ class SysLogHandler(logging.Handler):
         The record is formatted, and then sent to the syslog server. If
         exception information is present, it is NOT sent to the server.
         """
-        msg = self.format(record)
+        msg = self.format(record) + '\000'
         """
         We need to convert record level to lowercase, maybe this will
         change in the future.