From 81aabd39101e6bfc187b4ce7c836aafb9ff850e6 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 18 Nov 2023 20:44:51 +0800 Subject: [PATCH] Update index.py --- plugins/haproxy/index.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/plugins/haproxy/index.py b/plugins/haproxy/index.py index 07becca9c..21e9e38b4 100755 --- a/plugins/haproxy/index.py +++ b/plugins/haproxy/index.py @@ -215,19 +215,8 @@ def initdUinstall(): def runLog(): - path = getConf() - content = mw.readFile(path) - rep = 'log\s*=\s*(.*)' - tmp = re.search(rep, content) - return tmp.groups()[0] - - -def getPort(): - path = getConf() - content = mw.readFile(path) - rep = 'listen\s*=\s*(.*)' - tmp = re.search(rep, content) - return tmp.groups()[0] + path = getServerDir() + "/haproxy.log" + return path if __name__ == "__main__":