Skip to content

Commit

Permalink
fix(monitor): fix heartbeat logic
Browse files Browse the repository at this point in the history
* heartbeat always set to True even in case of failure.
  • Loading branch information
dhruvinsh committed Nov 4, 2023
1 parent af8e1ce commit baec121
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def monitor() -> bool:
except Exception:
logging.error("Something wrong with Qbit, it's not accessible")
HEARTBEAT = False

logging.debug("Hearbeat detected")
HEARTBEAT = True
else:
logging.debug("Hearbeat detected")
HEARTBEAT = True

return HEARTBEAT

0 comments on commit baec121

Please sign in to comment.