Reduce Log.info amount for SSL

This commit is contained in:
VirtuBox
2019-08-30 08:55:23 +02:00
parent 7f0463602d
commit 137318d562
2 changed files with 5 additions and 11 deletions

View File

@@ -1595,9 +1595,6 @@ def httpsRedirect(self, wo_domain_name, redirect=True, wildcard=False):
else:
if wildcard:
try:
Log.info(
self, "Adding /etc/nginx/conf.d/force-ssl-{0}.conf"
.format(wo_domain_name))
sslconf = open("/etc/nginx/conf.d/force-ssl-{0}.conf"
.format(wo_domain_name),
encoding='utf-8', mode='w')
@@ -1617,10 +1614,6 @@ def httpsRedirect(self, wo_domain_name, redirect=True, wildcard=False):
else:
try:
Log.info(
self, "Adding /etc/nginx/conf.d/force-ssl-{0}.conf"
.format(wo_domain_name))
sslconf = open("/etc/nginx/conf.d/force-ssl-{0}.conf"
.format(wo_domain_name),
encoding='utf-8', mode='w')