-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(hardware): Add some logging around what I think is causing some can errors #17117
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,6 +154,7 @@ async def send_and_verify_recieved(self) -> ErrorCode: | |
log.error( | ||
f"Message did not receive ack for message index {self._message.payload.message_index}" | ||
) | ||
log.error(f"Missing node {self._expected_nodes}") | ||
return ErrorCode.timeout | ||
finally: | ||
self._can_messenger.remove_listener(self) | ||
|
@@ -284,6 +285,7 @@ async def _ensure_send( | |
expected_nodes = list(self._known_nodes) | ||
else: | ||
expected_nodes = [node_id] | ||
log.warning(f"Setting expected nodes to {expected_nodes}") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is going to flood the logs no? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If everything is being done right this should never be in the logs, if we start seeing it, that mean's we are not setting up the can messages correctly and we need to hook up the "expected nodes" argument to this method. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we delete the one on line 282 then |
||
|
||
listener = AcknowledgeListener( | ||
can_messenger=self, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we condense this and the previous message