Skip to content

Commit

Permalink
Fixed send_current_configuration method
Browse files Browse the repository at this point in the history
  • Loading branch information
samson0v committed Sep 29, 2023
1 parent 1f2b4d6 commit 52dd19b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def send_current_configuration(self):
self._gateway.tb_client.client.send_attributes({'Version': self._gateway.version.get('current_version', 0.0)})
for connector in self.connectors_configuration:
self._gateway.tb_client.client.send_attributes(
{connector['name']: {**connector, 'logLevel': connector['configurationJson']['logLevel'],
{connector['name']: {**connector, 'logLevel': connector['configurationJson'].get('logLevel', 'INFO'),
'ts': int(time() * 1000)}})

def _load_connectors_configuration(self):
Expand Down

0 comments on commit 52dd19b

Please sign in to comment.