Browse Source

use warning log for disabled account

Son NK 4 years ago
parent
commit
4a7b73a218
1 changed files with 1 additions and 1 deletions
  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")]
             return [(False, "550 SL E3 Email not exist")]
 
 
     if alias.user.disabled:
     if alias.user.disabled:
-        LOG.exception(
+        LOG.warning(
             "User %s disabled, disable forwarding emails for %s", alias.user, alias
             "User %s disabled, disable forwarding emails for %s", alias.user, alias
         )
         )
         return [(False, "550 SL E20 Account disabled")]
         return [(False, "550 SL E20 Account disabled")]