mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[enh] Replace msignals.display by logging in domain
This commit is contained in:
parent
04c31638c6
commit
5676de11da
1 changed files with 5 additions and 2 deletions
|
@ -34,6 +34,9 @@ import errno
|
|||
from urllib import urlopen
|
||||
|
||||
from moulinette.core import MoulinetteError
|
||||
from moulinette.utils.log import getActionLogger
|
||||
|
||||
logger = getActionLogger('yunohost.domain')
|
||||
|
||||
|
||||
def domain_list(auth, raw=False, filter=None, limit=None, offset=None):
|
||||
|
@ -175,7 +178,7 @@ def domain_add(auth, domain, dyndns=False):
|
|||
|
||||
hook_callback('post_domain_add', args=[domain])
|
||||
|
||||
msignals.display(m18n.n('domain_created'), 'success')
|
||||
logger.success(m18n.n('domain_created'))
|
||||
|
||||
|
||||
def domain_remove(auth, domain, force=False):
|
||||
|
@ -217,7 +220,7 @@ def domain_remove(auth, domain, force=False):
|
|||
|
||||
hook_callback('post_domain_remove', args=[domain])
|
||||
|
||||
msignals.display(m18n.n('domain_deleted'), 'success')
|
||||
logger.success(m18n.n('domain_deleted'))
|
||||
|
||||
|
||||
def domain_dns_conf(domain, ttl=None):
|
||||
|
|
Loading…
Add table
Reference in a new issue