From 46a3591019bfb84ed52417638145bc0e1f2209ae Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 26 Jul 2024 17:00:52 +0800 Subject: [PATCH] Update index.py --- plugins/supervisor/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/supervisor/index.py b/plugins/supervisor/index.py index 3cfcaca1e..efc9c6293 100755 --- a/plugins/supervisor/index.py +++ b/plugins/supervisor/index.py @@ -257,7 +257,7 @@ def confDlistTraceLog(): confd_dir = getServerDir() + '/conf.d/' + args['name'] content = mw.readFile(confd_dir) - rep = 'stdout_logfile\s*=\s*(.*)' + rep = r'stdout_logfile\s*=\s*(.*)' tmp = re.search(rep, content) return tmp.groups()[0].strip() @@ -270,7 +270,7 @@ def confDlistErrorLog(): confd_dir = getServerDir() + '/conf.d/' + args['name'] content = mw.readFile(confd_dir) - rep = 'stderr_logfile\s*=\s*(.*)' + rep = r'stderr_logfile\s*=\s*(.*)' tmp = re.search(rep, content) return tmp.groups()[0].strip()