mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
only log worker threads, not main python thread
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user