Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
email_mirror: Change root logger to zerver.lib.email_mirror.
palash34003fc7f62e
diff --git a/zerver/lib/email_mirror.py b/zerver/lib/email_mirror.pyindex c99c280923a..82d14ec2c8e 100644--- a/zerver/lib/email_mirror.py+++ b/zerver/lib/email_mirror.py@@ -206,7 +206,7 @@ def extract_body(message: EmailMessage, include_quotes: bool=False, prefer_text:html_content = extract_html_body(message, include_quotes)if plaintext_content is None and html_content is None:- logging.warning("Content types: %s", [part.get_content_type() for part in message.walk()])+ logger.warning("Content types: %s", [part.get_content_type() for part in message.walk()])raise ZulipEmailForwardUserError("Unable to find plaintext or HTML message body")if not plaintext_content and not html_content:raise ZulipEmailForwardUserError("Email has no nonempty body sections; ignoring.")@@ -416,7 +416,7 @@ def process_message(message: EmailMessage, rcpt_to: Optional[str]=None) -> None:process_stream_message(to, message)except ZulipEmailForwardUserError as e:# TODO: notify sender of error, retry if appropriate.- logging.warning(e.args[0])+ logger.warning(e.args[0])except ZulipEmailForwardError as e:log_and_report(message, e.args[0], to)