From 3cf627eedcbb5ed6371a8aca3f9c8ca5f1d0cacc Mon Sep 17 00:00:00 2001 From: gigatexel <65073191+gigatexel@users.noreply.github.com> Date: Thu, 28 Mar 2024 12:40:17 +0100 Subject: [PATCH] Change checksum log level (#151) * Update filereader.py * Update socket_.py * Update serial_.py * Update protocol.py * Update socket_.py --- dsmr_parser/clients/filereader.py | 2 +- dsmr_parser/clients/protocol.py | 2 +- dsmr_parser/clients/serial_.py | 2 +- dsmr_parser/clients/socket_.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dsmr_parser/clients/filereader.py b/dsmr_parser/clients/filereader.py index a2ab525..4769f16 100644 --- a/dsmr_parser/clients/filereader.py +++ b/dsmr_parser/clients/filereader.py @@ -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) diff --git a/dsmr_parser/clients/protocol.py b/dsmr_parser/clients/protocol.py index 4605fcf..73ad9d5 100644 --- a/dsmr_parser/clients/protocol.py +++ b/dsmr_parser/clients/protocol.py @@ -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: diff --git a/dsmr_parser/clients/serial_.py b/dsmr_parser/clients/serial_.py index 945c4e7..08b69d8 100644 --- a/dsmr_parser/clients/serial_.py +++ b/dsmr_parser/clients/serial_.py @@ -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) diff --git a/dsmr_parser/clients/socket_.py b/dsmr_parser/clients/socket_.py index 8ee16fa..968a582 100644 --- a/dsmr_parser/clients/socket_.py +++ b/dsmr_parser/clients/socket_.py @@ -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)