Skip to content

Commit 1e207f6

Browse files
authored
Updated error notification on scheduler error. (#581)
1 parent 27356e3 commit 1e207f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

taskiq/cli/scheduler/run.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ async def get_schedules(source: ScheduleSource) -> list[ScheduledTask]:
4848
try:
4949
return await source.get_schedules()
5050
except Exception as exc:
51-
logger.warning(
52-
"Cannot update schedules with source: %s",
51+
logger.error(
52+
"Cannot update schedules with source: %s\n%s{}",
5353
source,
54+
exc,
55+
exc_info=True,
5456
)
55-
logger.debug(exc, exc_info=True)
5657
return []
5758

5859

0 commit comments

Comments
 (0)