Adding sentry tracking to issued with certificate deployment. (#978)

This commit is contained in:
kevgliss 2017-10-26 15:21:13 -07:00 committed by GitHub
parent bef762e0d6
commit f990ef27cf

View File

@ -363,6 +363,7 @@ def update_destinations(target, value, initiator):
if target.private_key:
destination_plugin.upload(target.name, target.body, target.private_key, target.chain, value.options)
except Exception as e:
sentry.captureException()
current_app.logger.exception(e)
metrics.send('destination_upload_failure', 'counter', 1,
metric_tags={'certificate': target.name, 'destination': value.label})