mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 19:10:10 +00:00
Fix bug with log replay without log
Without log, termstate was left as non-numeric None. Correct to set to zero if still None by the time return happens.
This commit is contained in:
parent
2742e83751
commit
e96e4bd527
@ -180,6 +180,8 @@ class Logger(object):
|
||||
textdata += textfile.read(len)
|
||||
fcntl.flock(textfile, fcntl.LOCK_UN)
|
||||
textfile.close()
|
||||
if termstate is None:
|
||||
termstate = 0
|
||||
return (textdata, termstate)
|
||||
|
||||
def log(self, logdata=None, ltype=None, event=0, eventdata=None):
|
||||
|
Loading…
Reference in New Issue
Block a user