do not use error level in migrate_domain_trash
This commit is contained in:
parent
37bb7655d5
commit
17e9798bfd
4
cron.py
4
cron.py
|
@ -548,7 +548,7 @@ def migrate_domain_trash():
|
||||||
if not SLDomain.get_by(domain=alias_domain):
|
if not SLDomain.get_by(domain=alias_domain):
|
||||||
custom_domain = CustomDomain.get_by(domain=alias_domain)
|
custom_domain = CustomDomain.get_by(domain=alias_domain)
|
||||||
if custom_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(
|
Session.add(
|
||||||
DomainDeletedAlias(
|
DomainDeletedAlias(
|
||||||
user_id=custom_domain.user_id,
|
user_id=custom_domain.user_id,
|
||||||
|
@ -559,7 +559,7 @@ def migrate_domain_trash():
|
||||||
)
|
)
|
||||||
DeletedAlias.delete(deleted_alias.id)
|
DeletedAlias.delete(deleted_alias.id)
|
||||||
|
|
||||||
Session.commit()
|
Session.commit()
|
||||||
|
|
||||||
|
|
||||||
def set_custom_domain_for_alias():
|
def set_custom_domain_for_alias():
|
||||||
|
|
Loading…
Reference in a new issue