forked from goodboy/tractor
1
0
Fork 0

Never allow more then info logging in daemon; causes blocking

dereg_on_channel_aclose
Tyler Goodlet 2020-08-08 15:15:43 -04:00
parent 8477d21499
commit 7f74182a8a
1 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,10 @@ def sig_prog(proc, sig):
def daemon(loglevel, testdir, arb_addr): def daemon(loglevel, testdir, arb_addr):
"""Run a daemon actor as a "remote arbiter". """Run a daemon actor as a "remote arbiter".
""" """
if loglevel in ('trace', 'debug'):
# too much logging will lock up the subproc (smh)
loglevel = 'info'
cmdargs = [ cmdargs = [
sys.executable, '-c', sys.executable, '-c',
"import tractor; tractor.run_daemon((), arbiter_addr={}, loglevel={})" "import tractor; tractor.run_daemon((), arbiter_addr={}, loglevel={})"