Skip to content

Commit

Permalink
Drop CPC logging from warning to debug (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly authored Sep 22, 2023
1 parent 65f0a91 commit fddd21f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions universal_silabs_flasher/cpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def data_received(self, data: bytes) -> None:
self._buffer = self._buffer[
self._buffer.find(bytes([cpc_types.FLAG])) :
]
_LOGGER.warning("Failed to parse buffer %r: %r", self._buffer, e)
_LOGGER.debug("Failed to parse buffer %r: %r", self._buffer, e)
else:
self.frame_received(frame)

Expand All @@ -291,7 +291,7 @@ def frame_received(self, frame: CPCTransportFrame) -> None:

if frame.unnumbered_type() == cpc_types.UnnumberedFrameType.POLL_FINAL:
if frame.payload.command_seq not in self._pending_frames:
_LOGGER.warning("Received an unsolicited frame: %s", frame)
_LOGGER.debug("Received an unsolicited frame: %s", frame)
return

future = self._pending_frames.pop(frame.payload.command_seq)
Expand Down

0 comments on commit fddd21f

Please # to comment.