Commit c0017584 authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

utils/threadpool: switch log level from info to debug

parent fa01177bccfb
......@@ -202,13 +202,13 @@ def threadpool(maxthreads):
def run(func, argslist):
count = 0
threads = []'// run %s %s', func.__name__, len(argslist))
L.debug('// run %s %s', func.__name__, len(argslist))
# initial threads
for count, args in enumerate(argslist, start=1):
th = threading.Thread(target=func, args=args)
threads.append(th)'// start thread %s',
L.debug('// start thread %s',
th.daemon = True
if count == maxthreads:
......@@ -219,11 +219,11 @@ def threadpool(maxthreads):
th.join(1. / maxthreads)
if not th.is_alive():
threads.remove(th)'// thread %s exited, %s remaining',, len(threads))
L.debug('// thread %s exited, %s remaining',, len(threads))
if count < len(argslist):
newth = threading.Thread(target=func, args=argslist[count])
threads.append(newth)'// thread %s started',
L.debug('// thread %s started',
newth.daemon = True
count += 1
Supports Markdown
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