Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed custom serial connector #1329

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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