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): ...@@ -232,7 +232,7 @@ class NEOLogger(Logger):
self._emit(record) self._emit(record)
self.commit() self.commit()
else: else:
self._record_size += RECORD_SIZE + len(record.msg) self._record_size += RECORD_SIZE + len(record.msg or '')
q = self._record_queue q = self._record_queue
q.append(record) q.append(record)
if record.levelno < WARNING: 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