mirror of
https://github.com/pdxlocations/contact.git
synced 2026-03-28 17:12:35 +01:00
dont write to the log before config
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user