errors: Add logging for consuming processed error reports.

This should make it a big easier to debug issues with this system.
This commit is contained in:
Tim Abbott 2017-01-23 22:56:37 -08:00
parent 0dd5d6cea0
commit 04ae2977fa

View File

@ -273,6 +273,7 @@ class ErrorReporter(QueueProcessingWorker):
def consume(self, event):
# type: (Mapping[str, Any]) -> None
logging.info("Processing traceback with type %s for %s" % (event['type'], event.get('user_email')))
if settings.DEPLOYMENT_ROLE_KEY:
self.staging_client.forward_error(event['type'], event['report'])
elif settings.ZILENCER_ENABLED: