From d05fbd5208751cbf518c20f6ead7b3dcbb9f5ae0 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 6 Jul 2022 15:40:41 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-ya/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mysql-ya/index.py b/plugins/mysql-ya/index.py index db07cfb4a..af9824300 100755 --- a/plugins/mysql-ya/index.py +++ b/plugins/mysql-ya/index.py @@ -251,7 +251,7 @@ def setSkipGrantTables(v): def getErrorLog(): file = getConf() content = mw.readFile(file) - rep = 'slow-query-log-file\s*=\s*(.*)' + rep = 'log-error\s*=\s*(.*)' tmp = re.search(rep, content) return tmp.groups()[0].strip() @@ -259,7 +259,7 @@ def getErrorLog(): def getShowLogFile(): file = getConf() content = mw.readFile(file) - rep = 'log-error\s*=\s*(.*)' + rep = 'slow-query-log-file\s*=\s*(.*)' tmp = re.search(rep, content) return tmp.groups()[0].strip()