Fix variable name.

pull/35/head
David Wilson 8 years ago
parent 7683ee060e
commit f93839c318

@ -202,15 +202,15 @@ class LogHandler(logging.Handler):
def emit(self, rec): def emit(self, rec):
if rec.name == 'econtext.io' or \ if rec.name == 'econtext.io' or \
getattr(self.local, 'in_commit', False): getattr(self.local, 'in_emit', False):
return return
self.local.in_commit = True self.local.in_emit = True
try: try:
msg = self.format(rec) msg = self.format(rec)
self.context.Enqueue(FORWARD_LOG, (rec.name, rec.levelno, msg)) self.context.Enqueue(FORWARD_LOG, (rec.name, rec.levelno, msg))
finally: finally:
self.local.in_commit = False self.local.in_emit = False
class Side(object): class Side(object):

Loading…
Cancel
Save