From f6820085852fa689de3e47214a93d2be3096fb76 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 29 Jun 2020 15:01:03 -0700 Subject: [PATCH] markdown: Delete unused log_markdown_error. Its used was removed in 50ed378dd65ef8b5cace69233880a15600991b65. --- zerver/lib/markdown/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.py index 80bc2ff0fc..15c774191b 100644 --- a/zerver/lib/markdown/__init__.py +++ b/zerver/lib/markdown/__init__.py @@ -2102,13 +2102,6 @@ _privacy_re = re.compile('\\w', flags=re.UNICODE) def privacy_clean_markdown(content: str) -> str: return repr(_privacy_re.sub('x', content)) -def log_markdown_error(msg: str) -> None: - """We use this unusual logging approach to log the markdown error, in - order to prevent AdminNotifyHandler from sending the sanitized - original markdown formatting into another Zulip message, which - could cause an infinite exception loop.""" - markdown_logger.error(msg) - def get_email_info(realm_id: int, emails: Set[str]) -> Dict[str, FullNameInfo]: if not emails: return dict()