1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
imbeacon
2024-03-08 14:50:36 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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):