diff --git a/rhodecode/model/notification.py b/rhodecode/model/notification.py --- a/rhodecode/model/notification.py +++ b/rhodecode/model/notification.py @@ -330,6 +330,11 @@ EMAIL_COMMENT_STATUS_CHANGE_SUBJECT_TEMP # Title of email for inline comment on a file in commit EMAIL_COMMENT_FILE_SUBJECT_TEMPLATE = '' +import cssutils +# hijack css utils logger and replace with ours +log = logging.getLogger('rhodecode.cssutils.premailer') +cssutils.log.setLog(log) + class EmailNotificationModel(BaseModel): TYPE_COMMIT_COMMENT = Notification.TYPE_CHANGESET_COMMENT @@ -373,11 +378,7 @@ class EmailNotificationModel(BaseModel): 'rhodecode:templates/email_templates/pull_request_update.mako', } - premailer_instance = premailer.Premailer( - cssutils_logging_level=logging.ERROR, - cssutils_logging_handler=logging.getLogger().handlers[0] - if logging.getLogger().handlers else None, - ) + premailer_instance = premailer.Premailer() def __init__(self): """