Lowercase the client name when sent_by is empty

This commit is contained in:
Ken Tsang
2018-03-22 16:12:33 +00:00
parent ffa093d8c7
commit c272d023c4
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ def _process_for_status(notification_status, client_name, provider_reference):
statsd_client.incr('callback.{}.{}'.format(client_name.lower(), notification_status))
if not notification.sent_by:
set_notification_sent_by(notification, client_name)
set_notification_sent_by(notification, client_name.lower())
if notification.sent_at:
statsd_client.timing_with_dates(