Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2126a5b

Browse files
committed
minor index fix
1 parent 9766f60 commit 2126a5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ def emit(self, record):
18201820
"""
18211821
self.loghist.append({'levelname': record.levelname,
18221822
'text': record.message % record.args if record.args else record.message,
1823-
'id': len(self.loghist)})
1823+
'id': len(self.loghist)+1})
18241824

18251825
if conf.fdLog:
18261826
os.write(conf.fdLog, base64pickle(self.loghist))

0 commit comments

Comments
 (0)