From 0453c0701d3598a9791019a39aca42a96a328a7a Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Thu, 5 Sep 2019 12:47:12 +0200 Subject: [PATCH] Improve logging --- wo/cli/plugins/site_functions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wo/cli/plugins/site_functions.py b/wo/cli/plugins/site_functions.py index 8d679be..3a9be5d 100644 --- a/wo/cli/plugins/site_functions.py +++ b/wo/cli/plugins/site_functions.py @@ -35,7 +35,7 @@ class SiteError(Exception): def pre_run_checks(self): # Check nginx configuration - Log.info(self, "Running pre-update checks, please wait...") + Log.wait(self, "Running pre-update checks") try: Log.debug(self, "checking NGINX configuration ...") FNULL = open('/dev/null', 'w') @@ -44,6 +44,9 @@ def pre_run_checks(self): except CalledProcessError as e: Log.debug(self, "{0}".format(str(e))) raise SiteError("nginx configuration check failed.") + Log.failed(self, "Running pre-update checks") + else: + Log.valide(self, "Running pre-update checks") def check_domain_exists(self, domain):