From 7775c0ce83d42170c43a0d7cc8af229df19f0022 Mon Sep 17 00:00:00 2001 From: Sergey Bahmatov Date: Mon, 31 Mar 2025 12:39:57 +0500 Subject: [PATCH] logs timer_manager --- pomodoro_bot/timer_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pomodoro_bot/timer_manager.py b/pomodoro_bot/timer_manager.py index ff3aad0..e90bdfc 100644 --- a/pomodoro_bot/timer_manager.py +++ b/pomodoro_bot/timer_manager.py @@ -11,6 +11,7 @@ class TimerManager: await self.stop_timer(user_id) async def timer(): + print(f"[DEBUG] Timer started for user {user_id}, label={label}, sleeping for {duration} sec") await asyncio.sleep(duration) print(f"[DEBUG timer] label={label!r}") if label == 'Pomodoro': @@ -23,6 +24,7 @@ class TimerManager: loop = asyncio.get_running_loop() task = loop.create_task(timer()) + print(f"[DEBUG] Timer task created for user {user_id} with label {label}") user = user_manager.get_user(user_id) user.current_timer = label user.task = task