Skip to content

Commit 7ddbab7

Browse files
authored
debug(activity): add more logging (#68826)
Add more logging as this is not triggering for all organizations or flows, only some logs are going through
1 parent 1486205 commit 7ddbab7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/sentry/models/activity.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import logging
34
from collections.abc import Mapping, Sequence
45
from enum import Enum
56
from typing import TYPE_CHECKING, Any, ClassVar
@@ -32,6 +33,9 @@
3233
from sentry.services.hybrid_cloud.user import RpcUser
3334

3435

36+
_default_logger = logging.getLogger(__name__)
37+
38+
3539
class ActivityManager(BaseManager["Activity"]):
3640
def get_activities_for_group(self, group: Group, num: int) -> Sequence[Activity]:
3741
activities = []
@@ -154,7 +158,14 @@ def save(self, *args, **kwargs):
154158
)
155159

156160
activity_created_receiver(self, created)
157-
except Exception:
161+
except Exception as err:
162+
_default_logger.info(
163+
"there was an error trying to kick off activity receiver",
164+
exc_info=err,
165+
extra={
166+
"activity_id": self.id,
167+
},
168+
)
158169
pass
159170

160171
if not created:

0 commit comments

Comments
 (0)