Skip to content

Commit

Permalink
Missing indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 29, 2024
1 parent 6b04f46 commit 095645c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/gort/overwatcher/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def task(self):
raise RuntimeError("Failed to set overwatcher heartbeat.")

except Exception as err:
self.overwatcher.log.error(
self.log.error(
f"Failed to set overwatcher heartbeat: {err}",
exc_info=err,
)
Expand All @@ -70,15 +70,13 @@ async def task(self):
try:
failed = await get_failed_actors(disacard_disabled=True)
if len(failed) > 0:
self.overwatcher.log.warning(
f"Failed to ping actors: {', '.join(failed)}."
)
self.log.warning(f"Failed to ping actors: {failed}.")

if self.overwatcher.state.enabled:
await self.restart_actors(failed)
if self.overwatcher.state.enabled:
await self.restart_actors(failed)

except Exception as err:
self.overwatcher.log.error(
self.log.error(
f"Failed to check actor health: {err}",
exc_info=err,
)
Expand Down

0 comments on commit 095645c

Please sign in to comment.