markdown: Delete unused log_markdown_error.

Its used was removed in 50ed378dd6.
This commit is contained in:
Tim Abbott 2020-06-29 15:01:03 -07:00
parent b0cbd8fb1d
commit f682008585
1 changed files with 0 additions and 7 deletions

View File

@ -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()