浏览代码

use warning log for disabled account

Son NK 4 年之前
父节点
当前提交
4a7b73a218
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      email_handler.py

+ 1 - 1
email_handler.py

@@ -457,7 +457,7 @@ def handle_forward(envelope, msg: Message, rcpt_to: str) -> List[Tuple[bool, str
             return [(False, "550 SL E3 Email not exist")]
 
     if alias.user.disabled:
-        LOG.exception(
+        LOG.warning(
             "User %s disabled, disable forwarding emails for %s", alias.user, alias
         )
         return [(False, "550 SL E20 Account disabled")]