diff --git a/smash/web/nexmo_gateway.py b/smash/web/nexmo_gateway.py index bf5147d634ef5c0adc4b7cae222cf8d26e99098d..0b7190bab23a30ad0c22c79dd8759960056e7422 100644 --- a/smash/web/nexmo_gateway.py +++ b/smash/web/nexmo_gateway.py @@ -1,6 +1,10 @@ +import logging + import nexmo from django.conf import settings +logger = logging.getLogger(__name__) + class Nexmo: """ @@ -28,4 +32,5 @@ class Nexmo: def send_sms(self, device, token): body = 'Your authentication token is %s' % token phone_number = device.number.as_e164 + logger.info("Sending authentication token to %s", phone_number) self.client.send_message({'to': phone_number, 'from': self.default_from, 'text': body})