Skip to content

Commit dd323d6

Browse files
antonpirkerszokeasaurusrex
authored andcommitted
Help for debugging Cron problems (#4686)
A debug message to see what check-ins are send including the `monitor_slug` and the check-in `status`. --------- Co-authored-by: Daniel Szoke <[email protected]>
1 parent 66f47ec commit dd323d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sentry_sdk/crons/api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import uuid
22

33
import sentry_sdk
4+
from sentry_sdk.utils import logger
45

56
from typing import TYPE_CHECKING
67

@@ -54,4 +55,8 @@ def capture_checkin(
5455

5556
sentry_sdk.capture_event(check_in_event)
5657

58+
logger.debug(
59+
f"[Crons] Captured check-in ({check_in_event.get('check_in_id')}): {check_in_event.get('monitor_slug')} -> {check_in_event.get('status')}"
60+
)
61+
5762
return check_in_event["check_in_id"]

0 commit comments

Comments
 (0)