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:
parent
dc401d6c3a
commit
bd3f6a2f42
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user