From c763b74fea5db85a92daf8c5c5e11598b42abc90 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 2 Dec 2016 23:23:16 +0100 Subject: [PATCH] [mod] use logger instead of print, a bit better bot not perfect --- src/yunohost/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index 2c1c55d77..bd3bb9696 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -159,7 +159,7 @@ def tools_maindomain(auth, new_domain=None): _set_maindomain(new_domain) except Exception as e: - print e + logger.warning("%s" % e, exc_info=1) raise MoulinetteError(errno.EPERM, m18n.n('maindomain_change_failed')) # Regen configurations