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 6 years ago
parent f96c552f87
commit 7d9b7eec0c

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

Loading…
Cancel
Save