2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Check correct value for a line terminator

This commit is contained in:
jbjohnso 2014-04-23 10:22:12 -04:00
parent dc401d6c3a
commit bd3f6a2f42

View File

@ -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)