Commit 05cd65b6 authored by Julien Muchembled's avatar Julien Muchembled

logger: fix backlog with a limit on packet size

This fixes testBasicStore when run with MySQL backend, which started to fail
with commit 9eb06ff1 when -L runner option is
not used.
parent df01cdcf
......@@ -232,7 +232,7 @@ class NEOLogger(Logger):
self._emit(record)
self.commit()
else:
self._record_size += RECORD_SIZE + len(record.msg)
self._record_size += RECORD_SIZE + len(record.msg or '')
q = self._record_queue
q.append(record)
if record.levelno < WARNING:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment