fd
This commit is contained in:
@@ -800,6 +800,15 @@ def save_config_and_verify(config: Dict[str, Any], retries: int = 3, delay: floa
|
||||
store_key = None
|
||||
|
||||
if prov_key == expected_key or store_key == expected_key:
|
||||
try:
|
||||
# Log a short, masked fingerprint to aid debugging without exposing the key itself
|
||||
import hashlib
|
||||
|
||||
fp = hashlib.sha256(expected_key.encode("utf-8")).hexdigest()[:8]
|
||||
log(f"Verified AllDebrid API key persisted (fingerprint={fp})")
|
||||
except Exception:
|
||||
# If hashing/logging fails, don't abort the save
|
||||
pass
|
||||
return saved
|
||||
|
||||
# Not yet persisted; log and retry
|
||||
|
||||
Reference in New Issue
Block a user