Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
imbeacon committed Mar 8, 2024
2 parents b3b845e + 79ceb10 commit 9474876
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion thingsboard_gateway/gateway/tb_gateway_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ def send_to_storage(self, connector_name, connector_id, data=None):
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):
Expand Down

0 comments on commit 9474876

Please sign in to comment.