Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
peckto committed Jun 27, 2022
1 parent 0c145a4 commit cf8f974
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gallia/transports/can.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from can import Message

from gallia.transports.base import BaseTransport, TargetURI, _bool_spec, _int_spec
from gallia.utils import can_id_repr

CANFD_MTU = 72
CAN_MTU = 16
Expand Down Expand Up @@ -382,7 +383,7 @@ async def get_idle_traffic(self, sniff_time: float) -> list[dict]:
"arbitration_id": msg.arbitration_id,
}
if msg_dict not in idle_msgs:
self.logger.log_info(f"Received a message {msg.arbitration_id}#{msg.data.hex()}")
self.logger.log_info(f"Received a message {can_id_repr(msg.arbitration_id)}#{msg.data.hex()}")
idle_msgs.append(msg_dict)
except asyncio.TimeoutError:
continue
Expand Down

0 comments on commit cf8f974

Please sign in to comment.