Browse Source

Default the culprit to the url if nothing is available

David Cramer 11 years ago
parent
commit
b13bc53a12
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/sentry/manager.py

+ 4 - 0
src/sentry/manager.py

@@ -465,6 +465,10 @@ class GroupManager(BaseManager, ChartMixin):
             if value:
                 http_data['data'] = trim(value, 2048)
 
+            # default the culprit to the url
+            if not data['culprit']:
+                data['culprit'] = strip(http_data.get('url'))
+
         return data
 
     def from_kwargs(self, project, **kwargs):