]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat common : quieten policy logging
authorSteven Hardy <shardy@redhat.com>
Thu, 7 Mar 2013 11:14:45 +0000 (11:14 +0000)
committerSteven Hardy <shardy@redhat.com>
Thu, 7 Mar 2013 12:18:25 +0000 (12:18 +0000)
Policy logs the currently loaded policy for every request, which is
too noisy even for debug - we already log the file which contains
the policy when we load it, so this is probably sufficient.

fixes bug 1150091

Change-Id: I0891a30793375c7a0a6b2856db4377eecfeaad8e

heat/common/policy.py

index b017aa440c2f010ccb405939e1bae42f96d1fd5a..a2a400eeb01e646874f0d5d87aee773ef4be1660 100644 (file)
@@ -69,8 +69,6 @@ class Enforcer(object):
             rule_type = "default "
 
         text_rules = dict((k, str(v)) for k, v in rules.items())
-        logger.debug(_('Loaded %(rule_type)spolicy rules: %(text_rules)s') %
-                     locals())
 
         self.set_rules(rules)