From e2af58926f6f067895b6f014f8ff159d6b31bed6 Mon Sep 17 00:00:00 2001 From: Robert Keyser Date: Mon, 6 Jan 2025 12:33:30 -0600 Subject: [PATCH] fix: return cread/update/delete-based read logs to info --- src/fides/api/api/v1/endpoints/policy_endpoints.py | 10 +++++----- .../api/api/v1/endpoints/privacy_request_endpoints.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/fides/api/api/v1/endpoints/policy_endpoints.py b/src/fides/api/api/v1/endpoints/policy_endpoints.py index d5112bd196..b0870e912b 100644 --- a/src/fides/api/api/v1/endpoints/policy_endpoints.py +++ b/src/fides/api/api/v1/endpoints/policy_endpoints.py @@ -240,7 +240,7 @@ def create_or_update_rules( Given a list of Rule data elements, create or update corresponding Rule objects or report failure """ - logger.debug("Finding policy with key '{}'", policy_key) + logger.info("Finding policy with key '{}'", policy_key) policy = get_policy_or_error(db, policy_key) @@ -357,7 +357,7 @@ def delete_rule( """ policy = get_policy_or_error(db, policy_key) - logger.debug("Finding rule with key '{}'", rule_key) + logger.info("Finding rule with key '{}'", rule_key) rule = Rule.filter( db=db, conditions=(Rule.key == rule_key and Rule.policy_id == policy.id) # type: ignore[arg-type] @@ -492,7 +492,7 @@ def create_or_update_rule_targets( """ policy = get_policy_or_error(db, policy_key) - logger.debug("Finding rule with key '{}'", rule_key) + logger.info("Finding rule with key '{}'", rule_key) rule = Rule.filter( db=db, conditions=(Rule.key == rule_key and Rule.policy_id == policy.id) # type: ignore[arg-type] ).first() @@ -591,7 +591,7 @@ def delete_rule_target( """ policy = get_policy_or_error(db, policy_key) - logger.debug("Finding rule with key '{}'", rule_key) + logger.info("Finding rule with key '{}'", rule_key) rule = Rule.filter( db=db, conditions=(Rule.key == rule_key and Rule.policy_id == policy.id) # type: ignore[arg-type] ).first() @@ -601,7 +601,7 @@ def delete_rule_target( detail=f"No Rule found for key {rule_key} on Policy {policy_key}.", ) - logger.debug("Finding rule target with key '{}'", rule_target_key) + logger.info("Finding rule target with key '{}'", rule_target_key) target = RuleTarget.filter( db=db, conditions=( diff --git a/src/fides/api/api/v1/endpoints/privacy_request_endpoints.py b/src/fides/api/api/v1/endpoints/privacy_request_endpoints.py index da5740c086..bfe42a1455 100644 --- a/src/fides/api/api/v1/endpoints/privacy_request_endpoints.py +++ b/src/fides/api/api/v1/endpoints/privacy_request_endpoints.py @@ -2157,7 +2157,7 @@ def create_privacy_request_func( failed.append(failure) continue - logger.debug("Finding policy with key '{}'", privacy_request_data.policy_key) + logger.info("Finding policy with key '{}'", privacy_request_data.policy_key) policy: Optional[Policy] = Policy.get_by( db=db, field="key",