change logging from info to debug in emailworker

This commit is contained in:
Stephan Telling 2017-05-21 16:23:13 +02:00
parent 63648cd08e
commit 95e363b831
No known key found for this signature in database
GPG key ID: D4892289F36ADA9B

View file

@ -12,7 +12,7 @@ def do_work():
"""
not_processed_email = OutgoingEmail.objects.filter(processed=False)
logger.info('about to process {} emails'.format(len(not_processed_email)))
logger.debug('about to process {} emails'.format(len(not_processed_email)))
for email in not_processed_email:
if ',' in email.recipient:
recipient = email.recipient.split(',')
@ -36,6 +36,6 @@ def do_work():
if mail_send_success:
email.processed = True
email.save()
logger.info('successfully sent {}'.format(email))
logger.debug('successfully sent {}'.format(email))
else:
logger.error('unable to sent {}'.format(email))