From 19e179e268f84e564ae552f2d4523d77e833cd30 Mon Sep 17 00:00:00 2001 From: Son NK Date: Sat, 22 Feb 2020 21:49:19 +0700 Subject: [PATCH] use warning level for alias deleted before log --- email_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/email_handler.py b/email_handler.py index a60e1279..1fa40da2 100644 --- a/email_handler.py +++ b/email_handler.py @@ -134,7 +134,7 @@ def try_auto_create_directory(alias: str) -> Optional[GenEmail]: # if alias has been deleted before, do not auto-create it if DeletedAlias.get_by(email=alias, user_id=directory.user_id): - LOG.error( + LOG.warning( "Alias %s was deleted before, cannot auto-create using directory %s, user %s", alias, directory_name, @@ -175,7 +175,7 @@ def try_auto_create_catch_all_domain(alias: str) -> Optional[GenEmail]: # if alias has been deleted before, do not auto-create it if DeletedAlias.get_by(email=alias, user_id=custom_domain.user_id): - LOG.error( + LOG.warning( "Alias %s was deleted before, cannot auto-create using domain catch-all %s, user %s", alias, custom_domain,