Improve acme logging

This commit is contained in:
VirtuBox
2019-09-23 01:11:27 +02:00
parent cfb7a98c7b
commit da23fc88ae
2 changed files with 4 additions and 1 deletions

View File

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

View File

@@ -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 "