Merge "Enable keepalived debug logs when debug=True"

This commit is contained in:
Jenkins 2017-04-06 08:11:48 +00:00 committed by Gerrit Code Review
commit e67ed785b7
1 changed files with 2 additions and 0 deletions

View File

@ -482,6 +482,8 @@ class KeepalivedManager(object):
'-f', config_path,
'-p', pid_file,
'-r', self.get_vrrp_pid_file_name(pid_file)]
if logging.is_debug_enabled(cfg.CONF):
cmd.append('-D')
return cmd
return callback