only log worker threads, not main python thread

This commit is contained in:
Clint Armstrong
2015-09-09 10:03:41 -04:00
parent ca7daae7cd
commit dde75439d2
+1 -1
View File
@@ -292,7 +292,7 @@ while True:
cur_threads = threading.active_count() cur_threads = threading.active_count()
if cur_threads != threads: if cur_threads != threads:
threads = cur_threads threads = cur_threads
log.debug('DEBUG: {0} threads currently active'.format(threads)) log.debug('DEBUG: {0} threads currently active'.format(str(threads - 1)))
if next_update < datetime.now(): if next_update < datetime.now():
seconds_taken = (datetime.now() - (next_update - timedelta(minutes=1))).seconds seconds_taken = (datetime.now() - (next_update - timedelta(minutes=1))).seconds