From 32adff03f147546a6eea11804c63eaa3da296dca Mon Sep 17 00:00:00 2001 From: Clint Armstrong Date: Wed, 2 Sep 2015 15:39:27 -0400 Subject: [PATCH] only log worker threads, not main python thread --- poller-service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poller-service.py b/poller-service.py index a9b292e4e4..e393f9ac71 100755 --- a/poller-service.py +++ b/poller-service.py @@ -292,7 +292,7 @@ while True: cur_threads = threading.active_count() if cur_threads != 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(): seconds_taken = (datetime.now() - (next_update - timedelta(minutes=1))).seconds