mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Pretty printing newsletter debug.
This commit is contained in:
parent
7225678c8f
commit
5f2c2d9a6f
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
from pprint import pprint
|
||||
from django.http import HttpResponse, Http404
|
||||
from utils import log as logging
|
||||
from apps.newsletters.models import EmailNewsletter
|
||||
|
@ -36,6 +37,9 @@ def newsletter_receive(request):
|
|||
# }
|
||||
response = HttpResponse('OK')
|
||||
|
||||
if settings.DEBUG:
|
||||
logging.debug(" ---> Email newsletter: %s" % pprint(request.REQUEST))
|
||||
|
||||
email_newsletter = EmailNewsletter()
|
||||
story = email_newsletter.receive_newsletter(request.REQUEST)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue