Skip to content

Commit

Permalink
lower log level for noisy log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurdok committed Jan 3, 2025
1 parent 5d05744 commit 0cb78bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/spanreed/plugins/spanreed_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def _monitor_obsidian_plugin(self, user: User) -> None:
last_obsidian_error_message = datetime.datetime.now()

while True:
self._logger.info("Waiting for Obsidian plugin events.")
self._logger.debug("Waiting for Obsidian plugin events.")
timeout: datetime.timedelta = base_timeout
time_since_last_watchdog_message = (
datetime.datetime.now() - last_watchdog_message
Expand All @@ -99,7 +99,7 @@ async def _monitor_obsidian_plugin(self, user: User) -> None:
timeout -= time_since_last_watchdog

with suppress(asyncio.TimeoutError):
self._logger.info(f"Waiting for event on {queue_name} with timeout {timeout}")
self._logger.debug(f"Waiting for event on {queue_name} with timeout {timeout}")
async with asyncio.timeout(timeout.total_seconds()):
_, event_json = await redis_api.blpop(
queue_name,
Expand Down Expand Up @@ -131,7 +131,7 @@ async def _monitor_obsidian_plugin(self, user: User) -> None:
datetime.datetime.now()
)
elif event["kind"] == "watchdog":
self._logger.info(
self._logger.debug(
"Obsidian plugin watchdog event received."
)
time_since_last_watchdog = datetime.timedelta()
Expand Down

0 comments on commit 0cb78bb

Please sign in to comment.