sync
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 44s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 44s
This commit is contained in:
@@ -150,12 +150,16 @@ class ConfigManager:
|
|||||||
|
|
||||||
# Value is base64 encoded JSON
|
# Value is base64 encoded JSON
|
||||||
encoded_value = data['Value']
|
encoded_value = data['Value']
|
||||||
|
logger.debug(f"Consul encoded value: {encoded_value}")
|
||||||
decoded_json_str = base64.b64decode(encoded_value).decode('utf-8')
|
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
|
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
|
# Deep merge consul_conf into self.config
|
||||||
self._deep_merge(self.config, consul_conf)
|
self._deep_merge(self.config, consul_conf)
|
||||||
logger.info("Successfully loaded and merged configuration from Consul.")
|
logger.info("Successfully loaded and merged configuration from Consul.")
|
||||||
|
logger.debug(f"Config after Consul merge: {self.config}")
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("Failed to load configuration from Consul: %s", e)
|
logger.error("Failed to load configuration from Consul: %s", e)
|
||||||
|
|||||||
Reference in New Issue
Block a user