do not use error level in migrate_domain_trash

This commit is contained in:
Son 2022-01-06 15:36:43 +01:00
parent 37bb7655d5
commit 17e9798bfd
1 changed files with 2 additions and 2 deletions

View File

@ -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():