Change checksum log level (#151)

* Update filereader.py

* Update socket_.py

* Update serial_.py

* Update protocol.py

* Update socket_.py
This commit is contained in:
gigatexel 2024-03-28 12:40:17 +01:00 committed by GitHub
parent d680d44683
commit 3cf627eedc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ class FileReader(object):
try:
yield self.telegram_parser.parse(telegram)
except InvalidChecksumError as e:
logger.warning(str(e))
logger.info(str(e))
except ParseError as e:
logger.error('Failed to parse telegram: %s', e)

View File

@ -158,7 +158,7 @@ class DSMRProtocol(asyncio.Protocol):
try:
parsed_telegram = self.telegram_parser.parse(telegram)
except InvalidChecksumError as e:
self.log.warning(str(e))
self.log.info(str(e))
except ParseError:
self.log.exception("failed to parse telegram")
else:

View File

@ -37,7 +37,7 @@ class SerialReader(object):
try:
yield self.telegram_parser.parse(telegram)
except InvalidChecksumError as e:
logger.warning(str(e))
logger.info(str(e))
except ParseError as e:
logger.error('Failed to parse telegram: %s', e)

View File

@ -54,7 +54,7 @@ class SocketReader(object):
try:
yield self.telegram_parser.parse(telegram)
except InvalidChecksumError as e:
logger.warning(str(e))
logger.info(str(e))
except ParseError as e:
logger.error('Failed to parse telegram: %s', e)