minor index fix

This commit is contained in:
Bernardo Damele 2013-01-10 00:00:00 +00:00
parent 9766f6025e
commit 2126a5ba12

View File

@ -1820,7 +1820,7 @@ class LogRecorder(logging.StreamHandler):
"""
self.loghist.append({'levelname': record.levelname,
'text': record.message % record.args if record.args else record.message,
'id': len(self.loghist)})
'id': len(self.loghist)+1})
if conf.fdLog:
os.write(conf.fdLog, base64pickle(self.loghist))