reduce the level of logging for packet parse errors

patch bump
This commit is contained in:
onyx-and-iris 2026-03-01 17:22:06 +00:00
parent 69263c22f2
commit a0ec00652b
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "vban-cmd"
version = "2.7.0"
version = "2.7.1"
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
license = { text = "MIT" }

View File

@ -154,7 +154,7 @@ class VbanResponseHeader:
# Validate this is an RTPacket response
if parsed['format_nbc'] != VBAN_SERVICE_RTPACKET:
raise ValueError(
f'Not a RTPacket response packet: {parsed["format_nbc"]:02x}'
f'Not an RTPacket response packet: {parsed["format_nbc"]:02x}'
)
return cls(**parsed)

View File

@ -96,7 +96,7 @@ class Producer(threading.Thread):
try:
header = VbanResponseHeader.from_bytes(data[:HEADER_SIZE])
except ValueError as e:
self.logger.warning(f'Error parsing response packet: {e}')
self.logger.debug(f'Error parsing response packet: {e}')
return None
match header.format_nbs: