This commit is contained in:
midoks
2020-06-08 08:45:48 +08:00
parent 9d42ae38be
commit 171f9e54f7
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -4,7 +4,8 @@
<p class="bgw" onclick="pluginService('v2ray');">服务</p>
<p onclick="pluginInitD('v2ray');">自启动</p>
<p onclick="pluginConfig('v2ray');">配置修改</p>
<p onclick="pluginLogs('v2ray','','run_log');">日志</p>
<p onclick="pluginLogs('v2ray','','run_log');">运行日志</p>
<p onclick="pluginLogs('v2ray','','error_log');">错误日志</p>
<p onclick="readme();">说明</p>
</div>
<div class="bt-w-con pd15">
+7 -1
View File
@@ -133,7 +133,11 @@ def initdUinstall():
def getLog():
return '/var/log/shadowsocks.log'
return '/var/log/v2ray/access.log'
def getErrLog():
return '/var/log/v2ray/error.log'
if __name__ == "__main__":
func = sys.argv[1]
@@ -157,5 +161,7 @@ if __name__ == "__main__":
print initdUinstall()
elif func == 'run_log':
print getLog()
elif func == 'error_log':
print getErrLog()
else:
print 'error'