dont write to the log before config

This commit is contained in:
pdxlocations
2025-07-20 23:46:24 -07:00
parent a8bdcbb7e6
commit 8716ea6fe1

View File

@@ -48,15 +48,6 @@ def _get_config_root(preferred_dir: str, fallback_name: str = ".contact_client")
# Pick the root now.
config_root = _get_config_root(parent_dir)
if config_root != parent_dir:
logging.debug(
"Parent directory %s not writable; using fallback config root %s",
parent_dir,
config_root,
)
else:
logging.debug("Using parent directory %s for config artifacts.", config_root)
# Paths (derived from the chosen root)
json_file_path = os.path.join(config_root, "config.json")
log_file_path = os.path.join(config_root, "client.log")