summaryrefslogtreecommitdiff
path: root/trove/guestagent/datastore/mysql_common/manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'trove/guestagent/datastore/mysql_common/manager.py')
-rw-r--r--trove/guestagent/datastore/mysql_common/manager.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/trove/guestagent/datastore/mysql_common/manager.py b/trove/guestagent/datastore/mysql_common/manager.py
index 538c29e1..cd6546a1 100644
--- a/trove/guestagent/datastore/mysql_common/manager.py
+++ b/trove/guestagent/datastore/mysql_common/manager.py
@@ -173,11 +173,14 @@ class MySqlManager(manager.Manager):
def is_log_enabled(self, logname):
if logname == self.GUEST_LOG_DEFS_GENERAL_LABEL:
- value = self.configuration_manager.get_value('general_log', 'off')
+ value = self.configuration_manager.get_value(
+ 'general_log', section='mysqld', default='off')
+ LOG.debug(f"The config value of general_log is {value}")
return value == 'on'
elif logname == self.GUEST_LOG_DEFS_SLOW_QUERY_LABEL:
- value = self.configuration_manager.get_value('slow_query_log',
- 'off')
+ value = self.configuration_manager.get_value(
+ 'slow_query_log', section='mysqld', default='off')
+ LOG.debug(f"The config value of slow_query_log is {value}")
return value == 'on'
return False