Browse Source

Merge pull request #312 from NL66278/10.0-mail_sendgrid-import-error-info

[10.0][FIX] mail_sendgrid*. Use info loglevel for import error.
pull/328/head
Pedro M. Baeza 6 years ago
committed by GitHub
parent
commit
19940a7bfe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mail_sendgrid/models/mail_mail.py
  2. 2
      mail_sendgrid/models/sendgrid_template.py
  3. 2
      mail_sendgrid_mass_mailing/models/mail_mail.py

2
mail_sendgrid/models/mail_mail.py

@ -19,7 +19,7 @@ try:
from sendgrid.helpers.mail import Email, Attachment, CustomArg, Content, \ from sendgrid.helpers.mail import Email, Attachment, CustomArg, Content, \
Personalization, Substitution, Mail, Header Personalization, Substitution, Mail, Header
except ImportError: except ImportError:
_logger.warning("ImportError raised while loading module.")
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True) _logger.debug("ImportError details:", exc_info=True)

2
mail_sendgrid/models/sendgrid_template.py

@ -15,7 +15,7 @@ _logger = logging.getLogger(__name__)
try: try:
import sendgrid import sendgrid
except ImportError: except ImportError:
_logger.warning("ImportError raised while loading module.")
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True) _logger.debug("ImportError details:", exc_info=True)

2
mail_sendgrid_mass_mailing/models/mail_mail.py

@ -9,7 +9,7 @@ _logger = logging.getLogger(__name__)
try: try:
from sendgrid.helpers.mail import TrackingSettings, SubscriptionTracking from sendgrid.helpers.mail import TrackingSettings, SubscriptionTracking
except ImportError: except ImportError:
_logger.warning("ImportError raised while loading module.")
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True) _logger.debug("ImportError details:", exc_info=True)

Loading…
Cancel
Save