Skip to content

Commit db47cb6

Browse files
committed
Replaced the error on bad Submission.submitter email address with syslog logging.
- Legacy-Id: 16509
1 parent 9170395 commit db47cb6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ietf/utils/mail.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import copy
88
import datetime
9-
import logging
9+
#import logging
1010
import re
1111
import six
1212
import smtplib
@@ -535,7 +535,7 @@ def is_valid_email(address):
535535
except ValidationError:
536536
return False
537537

538-
logger = logging.getLogger('django')
538+
#logger = logging.getLogger('django')
539539
def get_email_addresses_from_text(text):
540540
"""
541541
@@ -553,7 +553,9 @@ def valid(email):
553553
validate_email(addr)
554554
return True
555555
except ValidationError:
556-
logger.error('Bad data: get_email_addresses_from_text() got an '
556+
# logger.error('Bad data: get_email_addresses_from_text() got an '
557+
# 'invalid email address tuple: {email}, in "{text}".'.format(email=email, text=text))
558+
log('Bad data: get_email_addresses_from_text() got an '
557559
'invalid email address tuple: {email}, in "{text}".'.format(email=email, text=text))
558560
return False
559561
# whitespace normalization -- getaddresses doesn't do this

0 commit comments

Comments
 (0)