From b503594ac0bf2ff43fbe0a1c8166def9c801de0a Mon Sep 17 00:00:00 2001 From: Gus Esquivel Date: Fri, 31 Aug 2018 12:53:46 -0500 Subject: [PATCH 1/2] add missing requirements files for setup --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 1b517e89..fb5b0c39 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ -include setup.py version.py package.json bower.json gulpfile.js README.rst MANIFEST.in LICENSE AUTHORS +include setup.py version.py package.json bower.json gulpfile.js README.rst MANIFEST.in LICENSE AUTHORS requirements*.txt recursive-include lemur/plugins/lemur_email/templates * recursive-include lemur/static * global-exclude *~ From f6a130b09d4b74d5427af46eef1c10e6a232b190 Mon Sep 17 00:00:00 2001 From: Curtis Castrapel Date: Mon, 10 Sep 2018 09:13:31 -0700 Subject: [PATCH 2/2] Add more logging to messaging --- lemur/notifications/messaging.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lemur/notifications/messaging.py b/lemur/notifications/messaging.py index cd4ff0f1..ddf8d875 100644 --- a/lemur/notifications/messaging.py +++ b/lemur/notifications/messaging.py @@ -165,6 +165,7 @@ def send_rotation_notification(certificate, notification_plugin=None): notification_plugin.send('rotation', data, [data['owner']]) status = SUCCESS_METRIC_STATUS except Exception as e: + current_app.logger.error('Unable to send notification to {}.'.format(data['owner']), exc_info=True) sentry.captureException() metrics.send('notification', 'counter', 1, metric_tags={'status': status, 'event_type': 'rotation'}) @@ -196,6 +197,8 @@ def send_pending_failure_notification(pending_cert, notify_owner=True, notify_se notification_plugin.send('failed', data, [data['owner']], pending_cert) status = SUCCESS_METRIC_STATUS except Exception as e: + current_app.logger.error('Unable to send pending failure notification to {}.'.format(data['owner']), + exc_info=True) sentry.captureException() if notify_security: @@ -203,6 +206,9 @@ def send_pending_failure_notification(pending_cert, notify_owner=True, notify_se notification_plugin.send('failed', data, data["security_email"], pending_cert) status = SUCCESS_METRIC_STATUS except Exception as e: + current_app.logger.error('Unable to send pending failure notification to ' + '{}.'.format(data['security_email']), + exc_info=True) sentry.captureException() metrics.send('notification', 'counter', 1, metric_tags={'status': status, 'event_type': 'rotation'})