Skip to content
Snippets Groups Projects
Commit 71bd40f1 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Make sure we actually call the logger

parent 219338bb
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ from mailchimp3 import MailChimp
from .forms import NewsletterForm
logging.getLogger('opentech')
logger = logging.getLogger(__name__)
@method_decorator(csrf_exempt, name='dispatch')
......@@ -70,7 +70,7 @@ class MailchimpSubscribeView(FormMixin, RedirectView):
def warning(self, e):
messages.warning(self.request, _('Sorry, there has been an problem. Please try again later.'))
logging.info(e.args[0])
logger.error(e.args[0])
def success(self):
messages.success(self.request, _('Thank you for subscribing'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment