From da23fc88aea18219528ab630533ee35e39b2fc4c Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Mon, 23 Sep 2019 01:11:27 +0200 Subject: [PATCH] Improve acme logging --- wo/cli/plugins/site.py | 4 ++++ wo/core/acme.py | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wo/cli/plugins/site.py b/wo/cli/plugins/site.py index cdda922..0823eb7 100644 --- a/wo/cli/plugins/site.py +++ b/wo/cli/plugins/site.py @@ -1419,10 +1419,14 @@ class WOSiteUpdateController(CementBaseController): if WOAcme.setupletsencrypt( self, acme_domains, acmedata): WOAcme.deploycert(self, wo_domain) + else: + Log.error(self, "Unable to issue certificate") else: if WOAcme.setupletsencrypt( self, acme_domains, acmedata): WOAcme.deploycert(self, wo_domain) + else: + Log.error(self, "Unable to issue certificate") else: WOFileUtils.mvfile(self, "{0}/conf/nginx/ssl.conf.disabled" .format(wo_site_webroot), diff --git a/wo/core/acme.py b/wo/core/acme.py index f7d423b..e870681 100644 --- a/wo/core/acme.py +++ b/wo/core/acme.py @@ -38,7 +38,6 @@ class WOAcme: except Exception as e: Log.failed(self, "Issuing SSL cert with acme.sh") Log.debug(self, str(e)) - Log.error(self, "Unable to issue certificate", False) if acmedata['dns'] is True: Log.warn( self, "Please make sure your properly "