Skip to content

Commit

Permalink
forgot to fill out logging extra field
Browse files Browse the repository at this point in the history
  • Loading branch information
Christinarlong committed Nov 1, 2024
1 parent 3618d8f commit 0de3f4b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/sentry/sentry_apps/tasks/sentry_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,13 @@ def send_alert_event(
)

if not nodedata:
extra = {}
extra = {
"event_id": instance_id,
"occurrence_id": occurrence_id,
"rule": rule,
"sentry_app": sentry_app.slug,
"group_id": group_id,
}
logger.info("send_alert_event.missing_event", extra=extra)
return

Expand All @@ -166,7 +172,7 @@ def send_alert_event(
occurrence = IssueOccurrence.fetch(occurrence_id, project_id=project.id)

if not occurrence:
logger.error(
logger.info(
"send_alert_event.missing_occurrence",
extra={"occurrence_id": occurrence_id, "project_id": project.id},
)
Expand Down

0 comments on commit 0de3f4b

Please sign in to comment.