sync
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 44s

This commit is contained in:
2025-12-15 07:27:02 -08:00
parent 82dd60bccc
commit 9b445546da

View File

@@ -150,12 +150,16 @@ class ConfigManager:
# Value is base64 encoded JSON
encoded_value = data['Value']
logger.debug(f"Consul encoded value: {encoded_value}")
decoded_json_str = base64.b64decode(encoded_value).decode('utf-8')
logger.debug(f"Consul decoded JSON string: {decoded_json_str}")
consul_conf = json.loads(decoded_json_str) # Parse the JSON
logger.debug(f"Consul parsed config (dict): {consul_conf}")
# Deep merge consul_conf into self.config
self._deep_merge(self.config, consul_conf)
logger.info("Successfully loaded and merged configuration from Consul.")
logger.debug(f"Config after Consul merge: {self.config}")
except Exception as e:
logger.error("Failed to load configuration from Consul: %s", e)