openresty error_logs

This commit is contained in:
Mr Chen
2018-12-10 11:42:13 +08:00
parent 8b3d0cbba4
commit 4801850373
3 changed files with 34 additions and 0 deletions
+6
View File
@@ -216,6 +216,10 @@ def runInfo():
return public.getJson(data)
def errorLogPath():
return getServerDir() + '/nginx/logs/error.log'
if __name__ == "__main__":
func = sys.argv[1]
if func == 'status':
@@ -238,5 +242,7 @@ if __name__ == "__main__":
print getConf()
elif func == 'run_info':
print runInfo()
elif func == 'error_log':
print errorLogPath()
else:
print 'error'