From f93d9316681c418e6dd33dc981a9d15a4be030a0 Mon Sep 17 00:00:00 2001 From: arushiiii18 Date: Fri, 10 Jul 2026 00:23:41 +0530 Subject: [PATCH] enhance(logging): improve feature flags configuration save error message --- safety/auth/utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/safety/auth/utils.py b/safety/auth/utils.py index 53bba015..dbed5a8c 100644 --- a/safety/auth/utils.py +++ b/safety/auth/utils.py @@ -119,7 +119,12 @@ def save_flags_config(flags: Dict[FeatureType, bool]) -> None: with open(CONFIG_FILE_USER, "w") as config_file: config.write(config_file) except Exception: - LOG.exception("Unable to save flags configuration.") + LOG.exception( + "Unable to save feature flags configuration to %s. " + "The application will continue using existing configuration " + "or default flag values until the next restart.", + CONFIG_FILE_USER, + ) def get_feature_name(feature: FeatureType, as_attr: bool = False) -> str: