Add debug log

This commit is contained in:
VirtuBox
2019-07-29 15:08:49 +02:00
parent 88f896e429
commit 4fd9d267bb
4 changed files with 10 additions and 3 deletions

View File

@@ -88,8 +88,8 @@ class WOCleanController(CementBaseController):
def clean_opcache(self):
try:
Log.info(self, "Cleaning opcache")
wp = urllib.request.urlopen(" https://127.0.0.1:22222/cache"
"/opcache/opgui.php?reset=1").read()
urllib.request.urlopen(" https://127.0.0.1:22222/cache"
"/opcache/opgui.php?reset=1").read()
except Exception as e:
Log.debug(self, "{0}".format(e))
Log.debug(self, "Unable hit url, "

View File

@@ -113,6 +113,7 @@ class WOSecureController(CementBaseController):
try:
user_ip = self.app.pargs.user_input.split(',')
except Exception as e:
Log.debug(self, "{0}".format(e))
user_ip = ['127.0.0.1']
for ip_addr in user_ip:
if not ("exist_ip_address "+ip_addr in open('/etc/nginx/common/'

View File

@@ -176,7 +176,7 @@ class WOStackController(CementBaseController):
log=False)
except CommandExecutionError as e:
Log.debug(self, "{0}".format(e))
Log.error("Failed to initialize MySQL package")
Log.error(self, "Failed to initialize MySQL package")
# generate my.cnf root credentials
mysql_config = """
[client]
@@ -1659,6 +1659,7 @@ class WOStackController(CementBaseController):
'Anemometer']
]
except Exception as e:
Log.debug(self, "{0}".format(e))
pass
if (apt_packages) or (packages):