Skip to content

Commit

Permalink
Adding logging for increased traceability
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 committed Jun 4, 2024
1 parent 7ee6bb8 commit 9681067
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions supervisor/homeassistant/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ async def restart(self, *, safe_mode: bool = False) -> None:
"""Restart Home Assistant Docker."""
# Create safe mode marker file if necessary
if safe_mode:
_LOGGER.debug("Creating safe mode marker file.")
await self.sys_run_in_executor(
(self.sys_config.path_homeassistant / SAFE_MODE_FILENAME).touch
)
Expand All @@ -387,6 +388,7 @@ async def rebuild(self, *, safe_mode: bool = False) -> None:
"""Rebuild Home Assistant Docker container."""
# Create safe mode marker file if necessary
if safe_mode:
_LOGGER.debug("Creating safe mode marker file.")
await self.sys_run_in_executor(
(self.sys_config.path_homeassistant / SAFE_MODE_FILENAME).touch
)
Expand Down

0 comments on commit 9681067

Please sign in to comment.