Merge "Forced scheduling should be logged as Audit not Debug"

This commit is contained in:
Jenkins 2013-10-08 00:09:38 +00:00 committed by Gerrit Code Review
commit cc3a6af0e7

@ -335,7 +335,7 @@ class HostManager(object):
ignored_hosts.append(host)
ignored_hosts_str = ', '.join(ignored_hosts)
msg = _('Host filter ignoring hosts: %s')
LOG.debug(msg % ignored_hosts_str)
LOG.audit(msg % ignored_hosts_str)
def _match_forced_hosts(host_map, hosts_to_force):
forced_hosts = []
@ -351,7 +351,7 @@ class HostManager(object):
forced_hosts_str = ', '.join(hosts_to_force)
msg = _("No hosts matched due to not matching "
"'force_hosts' value of '%s'")
LOG.debug(msg % forced_hosts_str)
LOG.audit(msg % forced_hosts_str)
def _match_forced_nodes(host_map, nodes_to_force):
forced_nodes = []
@ -367,7 +367,7 @@ class HostManager(object):
forced_nodes_str = ', '.join(nodes_to_force)
msg = _("No nodes matched due to not matching "
"'force_nodes' value of '%s'")
LOG.debug(msg % forced_nodes_str)
LOG.audit(msg % forced_nodes_str)
filter_classes = self._choose_host_filters(filter_class_names)
ignore_hosts = filter_properties.get('ignore_hosts', [])