From bd3f6a2f4215bf9f2ae52e51c2bedd3251639fb6 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 23 Apr 2014 10:22:12 -0400 Subject: [PATCH] Check correct value for a line terminator --- confluent/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent/log.py b/confluent/log.py index b45a190b..409603a1 100644 --- a/confluent/log.py +++ b/confluent/log.py @@ -170,7 +170,7 @@ class Logger(object): else: textrecord = textdate + data + ']' else: - if not textrecord.endswith('\n'): + if not data.endswith('\n'): textrecord = textdate + data + '\n' self.textfile.write(textrecord) fcntl.flock(self.textfile, fcntl.LOCK_UN)