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 09e8b34fb8
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -154,7 +154,7 @@ class VbanResponseHeader:
# Validate this is an RTPacket response # Validate this is an RTPacket response
if parsed['format_nbc'] != VBAN_SERVICE_RTPACKET: if parsed['format_nbc'] != VBAN_SERVICE_RTPACKET:
raise ValueError( 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) return cls(**parsed)

View File

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