Skip to content

Commit

Permalink
Merge pull request #1329 from samson0v/master
Browse files Browse the repository at this point in the history
Fixed custom serial connector
  • Loading branch information
imbeacon authored Mar 6, 2024
2 parents ef9bbb3 + 3af48f0 commit afee9e0
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 afee9e0

Please sign in to comment.