From 294c9c7f44995dd0eeefeedf9a58693b69c27cc0 Mon Sep 17 00:00:00 2001 From: Josh Borrow Date: Tue, 17 Dec 2024 13:40:15 -0500 Subject: [PATCH] Add debug statement about bg tasks --- librarian_background/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/librarian_background/__init__.py b/librarian_background/__init__.py index 7c29d68..e2ba101 100644 --- a/librarian_background/__init__.py +++ b/librarian_background/__init__.py @@ -10,6 +10,8 @@ import time +from loguru import logger + from .core import SafeScheduler from .settings import background_settings @@ -33,6 +35,7 @@ def background(run_once: bool = False): ) for task in all_tasks: + logger.debug("Scheduling background task: {}", task) scheduler.every(task.every.seconds).seconds.do(task.task) # ...and run it all on startup.