Merge "Honor debug mode in keepalived-state-change script logs"

This commit is contained in:
Zuul 2023-01-30 10:49:28 +00:00 committed by Gerrit Code Review
commit e6eeb700c8
2 changed files with 3 additions and 2 deletions

View File

@ -169,7 +169,6 @@ def configure(conf):
config.register_common_config_options()
config.init(sys.argv[1:])
conf.set_override('log_dir', cfg.CONF.conf_dir)
conf.set_override('debug', True)
conf.set_override('use_syslog', True)
config.setup_logging()
privileged.default.set_client_mode(False)

View File

@ -85,7 +85,9 @@ class TestMonitorDaemon(base.BaseLoggingTestCase):
'--pid_file=%s' % self.pid_file,
'--state_path=%s' % self.conf_dir,
'--user=%s' % os.geteuid(),
'--group=%s' % os.getegid()]
'--group=%s' % os.getegid(),
'--debug',
]
def _search_in_file(self, file_name, text):
def text_in_file():