bug fix: fetch logs

This commit is contained in:
Usman Nasir
2019-11-26 13:36:17 +05:00
parent d11eb06812
commit 7f036727ef
4 changed files with 87 additions and 22 deletions

View File

@@ -856,9 +856,7 @@ class WebsiteManager:
## get Logs
website = Websites.objects.get(domain=self.domain)
execPath = "/usr/local/CyberCP/bin/python2 " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"
execPath = execPath + " getAccessLogs --path " + fileName + " --page " + str(page)
output = ProcessUtilities.outputExecutioner(execPath, website.externalApp)
output = virtualHostUtilities.getAccessLogs(fileName, page, website.externalApp)
if output.find("1,None") > -1:
final_json = json.dumps(
@@ -916,10 +914,7 @@ class WebsiteManager:
## get Logs
website = Websites.objects.get(domain=self.domain)
execPath = "/usr/local/CyberCP/bin/python2 " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"
execPath = execPath + " getErrorLogs --path " + fileName + " --page " + str(page)
output = ProcessUtilities.outputExecutioner(execPath, website.externalApp)
output = virtualHostUtilities.getErrorLogs(fileName, page, website.externalApp)
if output.find("1,None") > -1:
final_json = json.dumps(