Skip to content

Commit

Permalink
Fixed custom serial connector
Browse files Browse the repository at this point in the history
  • Loading branch information
samson0v committed Mar 6, 2024
1 parent ef9bbb3 commit 3af48f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, gateway, config, connector_type):
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
Expand Down

0 comments on commit 3af48f0

Please sign in to comment.