tests: must wrap log_to_file() in is_master

Without it, end up with a billion loggers attached in some tests
pull/245/head
David Wilson 7 years ago
parent f96c552f87
commit 7d9b7eec0c

@ -22,6 +22,7 @@ if mitogen.is_master: # TODO: shouldn't be necessary.
DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
sys.path.append(DATA_DIR)
if mitogen.is_master:
mitogen.utils.log_to_file()

Loading…
Cancel
Save