diff --git a/thingsboard_gateway/gateway/tb_gateway_remote_configurator.py b/thingsboard_gateway/gateway/tb_gateway_remote_configurator.py index 8a5724dbe..e193a42d6 100644 --- a/thingsboard_gateway/gateway/tb_gateway_remote_configurator.py +++ b/thingsboard_gateway/gateway/tb_gateway_remote_configurator.py @@ -78,6 +78,7 @@ def send_current_configuration(self): for config_file in self.__gateway._connectors_configs[connector]: current_configuration[connector].append(config_file) current_configuration["thingsboard"] = self.__old_general_configuration_file + current_configuration["thingsboard"]["logs"] = b64encode(self.__old_logs_configuration.encode("UTF-8")) encoded_current_configuration = b64encode(dumps(current_configuration).encode()) self.__old_configuration = encoded_current_configuration self.__gateway.tb_client.client.send_attributes( @@ -95,11 +96,14 @@ def __process_connectors_configuration(self): self.__old_connectors_configs = {} self.__new_connectors_configs = {} self.__old_general_configuration_file = self.__new_general_configuration_file + self.__old_logs_configuration = self.__new_logs_configuration + self.__new_logs_configuration = None self.__new_general_configuration_file = {} else: log.error("A remote general configuration applying has been failed.") self.__old_connectors_configs = {} self.__new_connectors_configs = {} + self.__new_logs_configuration = None self.__new_general_configuration_file = {} return