From 17e9798bfde4a190f84c6b56f456f981a1128571 Mon Sep 17 00:00:00 2001 From: Son Date: Thu, 6 Jan 2022 15:36:43 +0100 Subject: [PATCH] do not use error level in migrate_domain_trash --- cron.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron.py b/cron.py index 7cc75066..c509e372 100644 --- a/cron.py +++ b/cron.py @@ -548,7 +548,7 @@ def migrate_domain_trash(): if not SLDomain.get_by(domain=alias_domain): custom_domain = CustomDomain.get_by(domain=alias_domain) if custom_domain: - LOG.e("move %s to domain %s trash", deleted_alias, custom_domain) + LOG.w("move %s to domain %s trash", deleted_alias, custom_domain) Session.add( DomainDeletedAlias( user_id=custom_domain.user_id, @@ -559,7 +559,7 @@ def migrate_domain_trash(): ) DeletedAlias.delete(deleted_alias.id) - Session.commit() + Session.commit() def set_custom_domain_for_alias():