diff --git a/sentry/views.py b/sentry/views.py
index <HASH>..<HASH> 100644
--- a/sentry/views.py
+++ b/sentry/views.py
@@ -1,3 +1,4 @@
+import logging
 import base64
 try:
     import cPickle as pickle
@@ -316,7 +317,11 @@ def store(request):
             data = pickle.loads(base64.b64decode(data).decode('zlib'))
         except zlib.error:
             data = pickle.loads(base64.b64decode(data))
-    except Exception:
+    except Exception, e:
+    # This error should be caught as it suggests that there's a
+    # bug somewhere in the Sentry code.
+
+    logging.exception('Bad data received')
         return HttpResponseForbidden('Bad data')
 
     GroupedMessage.objects.from_kwargs(**data)
@@ -334,4 +339,4 @@ def group_plugin_action(request, group_id, slug):
     response = cls(group_id)(request, group)
     if response:
         return response
-    return HttpResponseRedirect(request.META['HTTP_REFERER'])
\ No newline at end of file
+    return HttpResponseRedirect(request.META['HTTP_REFERER'])
Enabled logging of exception before sending Bad data error.