Skip to content

Commit

Permalink
updated logging details
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoegenburg committed Mar 20, 2024
1 parent 6367691 commit 674cda7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def _handle_motor_driver_error(
node_id = arbitration_id.parts.originating_node_id
data = message.payload.data.value
if data & MotorDriverErrorCode.over_temperature.value:
log.error(f"Motor driver error from node {node_id}")
log.error(f"Motor driver over-temperature error from node {node_id}")
self._errors.append(
MotorDriverError(
detail={
Expand All @@ -516,7 +516,7 @@ def _handle_motor_driver_error(
)
)
if data & MotorDriverErrorCode.short_circuit.value:
log.error(f"Motor driver error from node {node_id}")
log.error(f"Motor driver short circuit error from node {node_id}")
self._errors.append(
MotorDriverError(
detail={
Expand All @@ -526,7 +526,7 @@ def _handle_motor_driver_error(
)
)
if data & MotorDriverErrorCode.open_circuit.value:
log.error(f"Motor driver error from node {node_id}")
log.error(f"Motor driver open circuit error from node {node_id}")
self._errors.append(
MotorDriverError(
detail={
Expand Down

0 comments on commit 674cda7

Please sign in to comment.