Skip to content

Commit

Permalink
fix: return cread/update/delete-based read logs to info
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertKeyser committed Jan 6, 2025
1 parent c9f19da commit e2af589
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/fides/api/api/v1/endpoints/policy_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand All @@ -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=(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e2af589

Please sign in to comment.