Skip to content

Commit

Permalink
logging(group-owner): adds more logging (#66702)
Browse files Browse the repository at this point in the history
  • Loading branch information
scefali committed Mar 11, 2024
1 parent 274cf05 commit caa9869
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sentry/models/projectownership.py
Expand Up @@ -236,7 +236,7 @@ def handle_auto_assignment(
group: Group | None = None,
organization_id: int | None = None,
force_autoassign: bool = False,
logging_extra: dict[str, str] | None = None,
logging_extra: dict[str, str | bool] | None = None,
):
"""
Get the auto-assign owner for a project if there are any.
Expand Down Expand Up @@ -283,10 +283,12 @@ def handle_auto_assignment(
issue_owner = GroupOwner.get_autoassigned_owner_no_cache(
group.id, project_id, autoassignment_types
)
logging_extra["use_groupowner_cache"] = False
else:
issue_owner = GroupOwner.get_autoassigned_owner_cached(
group.id, project_id, autoassignment_types
)
logging_extra["use_groupowner_cache"] = True

if issue_owner is False:
logger.info("handle_auto_assignment.no_issue_owner", extra=logging_extra)
Expand Down

0 comments on commit caa9869

Please sign in to comment.