diff --git a/thingsboard_gateway/extensions/serial/custom_serial_connector.py b/thingsboard_gateway/extensions/serial/custom_serial_connector.py index 86de7dd2..7e34bca0 100644 --- a/thingsboard_gateway/extensions/serial/custom_serial_connector.py +++ b/thingsboard_gateway/extensions/serial/custom_serial_connector.py @@ -42,7 +42,7 @@ class CustomSerialConnector(Thread, Connector): # Define a connector class, it self.__gateway = gateway # Save gateway object, we will use some gateway methods for adding devices and saving data from them. self.name = self.__config.get("name", "Custom %s connector " % self.get_name() + ''.join( - choice(ascii_lowercase) for _ in range(5)))) # get from the configuration or create name for logs. + choice(ascii_lowercase) for _ in range(5))) # get from the configuration or create name for logs. self._log = init_logger(self.__gateway, self.name, level=self.__config.get('logLevel')) self._log.info("Starting Custom %s connector", self.get_name()) # Send message to logger self.daemon = True # Set self thread as daemon diff --git a/thingsboard_gateway/gateway/tb_gateway_service.py b/thingsboard_gateway/gateway/tb_gateway_service.py index bf1d87d9..1cc4b2dd 100644 --- a/thingsboard_gateway/gateway/tb_gateway_service.py +++ b/thingsboard_gateway/gateway/tb_gateway_service.py @@ -957,7 +957,7 @@ class TBGatewayService: else: return Status.NO_NEW_DATA except Exception as e: - log.exception("Cannot put converted data!", e) + log.exception("Cannot put converted data!", exc_info=e) return Status.FAILURE def __send_to_storage(self):