Remove log message if not relevent

This commit is contained in:
Oliver Walters 2022-01-07 16:53:51 +11:00
parent 3eb1fa32f9
commit 36feef6558

View File

@ -318,7 +318,8 @@ class PluginsRegistry:
plugin.register_tasks()
task_keys += plugin.get_task_names()
logger.info(f"Activated {len(task_keys)} scheduled tasks")
if len(task_keys) > 0:
logger.info(f"Activated {len(task_keys)} scheduled tasks")
# Remove any scheduled tasks which do not match
# This stops 'old' plugin tasks from accumulating