mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-07 22:52:06 +08:00
improved commIssue logging (#21515)
old-commit-hash: 685e33c067da47699919be86508ea2ac419fcd38
This commit is contained in:
@@ -244,7 +244,9 @@ class Controls:
|
||||
elif not self.sm.all_alive_and_valid():
|
||||
self.events.add(EventName.commIssue)
|
||||
if not self.logged_comm_issue:
|
||||
cloudlog.error(f"commIssue - valid: {self.sm.valid} - alive: {self.sm.alive}")
|
||||
invalid = [s for s, valid in self.sm.valid.items() if not valid]
|
||||
not_alive = [s for s, alive in self.sm.alive.items() if not alive]
|
||||
cloudlog.event("commIssue", invalid=invalid, not_alive=not_alive)
|
||||
self.logged_comm_issue = True
|
||||
else:
|
||||
self.logged_comm_issue = False
|
||||
|
||||
Reference in New Issue
Block a user