Improve logging

This commit is contained in:
VirtuBox
2019-09-05 12:47:12 +02:00
parent 77c0bdfeb8
commit 0453c0701d

View File

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