From 9b445546daf8f1ff89a47d91b6a1a479b930c45b Mon Sep 17 00:00:00 2001 From: sstent Date: Mon, 15 Dec 2025 07:27:02 -0800 Subject: [PATCH] sync --- fitbitsync.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fitbitsync.py b/fitbitsync.py index cd5ac92..dcb8be6 100644 --- a/fitbitsync.py +++ b/fitbitsync.py @@ -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)