Explorar o código

use warning log for disabled account

Son NK %!s(int64=4) %!d(string=hai) anos
pai
achega
4a7b73a218
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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")]