Skip to content

Commit

Permalink
Logging improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
imbeacon committed Nov 24, 2023
1 parent ec44657 commit c0f58f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thingsboard_gateway/gateway/tb_gateway_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@ def __init__(self, config_file=None):
self.__subscribed_to_rpc_topics = True
if logging_error is not None:
self.tb_client.client.send_telemetry({"ts": time() * 1000, "values": {
"LOGS": "Logging loading exception, logs.conf is wrong: %s" % (str(logging_error),)}})
"LOGS": "Logging loading exception, logs.json is wrong: %s" % (str(logging_error),)}})
TBLoggerHandler.set_default_handler()
self.__rpc_reply_sent = False
self.remote_handler = TBLoggerHandler(self)
log.addHandler(self.remote_handler)
# self.main_handler.setTarget(self.remote_handler)
self._default_connectors = DEFAULT_CONNECTORS
self.__converted_data_queue = SimpleQueue()
self.__save_converted_data_thread = Thread(name="Save converted data", daemon=True,
self.__save_converted_data_thread = Thread(name="Storage fill thread", daemon=True,
target=self.__send_to_storage)
self.__save_converted_data_thread.start()
self._implemented_connectors = {}
Expand Down Expand Up @@ -798,7 +798,7 @@ def __connect_with_connectors(self):
else:
break
else:
log.info("Config not found or empty for %s", connector_type)
log.warning("Config not found or empty for %s", connector_type)
except Exception as e:
log.exception(e, attr_name=connector_name)
if connector is not None:
Expand Down

0 comments on commit c0f58f8

Please sign in to comment.