From: Mike Perez <thingee@gmail.com>
Date: Fri, 6 Mar 2015 21:47:34 +0000 (-0800)
Subject: Change log level for no object attribute found
X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d5f978af3cc31b4b81e7249d3d0a4ceb5ad0ff68;p=openstack-build%2Fcinder-build.git

Change log level for no object attribute found

The operator shouldn't be exposed to this information, this should just
work and continue. Changing this to debug level for developers.

Change-Id: Ic6d40ceb8c28cafc5be6474a6caedad7e13f03d1
---

diff --git a/cinder/objects/base.py b/cinder/objects/base.py
index 61a47c623..c33883699 100644
--- a/cinder/objects/base.py
+++ b/cinder/objects/base.py
@@ -28,7 +28,7 @@ import six
 
 from cinder import context
 from cinder import exception
-from cinder.i18n import _, _LE, _LW
+from cinder.i18n import _, _LE
 from cinder import objects
 from cinder.objects import fields
 from cinder.openstack.common import log as logging
@@ -616,10 +616,10 @@ class CinderObjectDictCompat(object):
             # The following preserves that compatability but in
             # the future we'll remove this shim altogether so don't
             # rely on it.
-            LOG.warning(_LW('Cinder object %(object_name)s has no '
-                            'attribute named: %(attribute_name)s'),
-                        {'object_name': self.__class__.__name__,
-                         'attribute_name': key})
+            LOG.debug('Cinder object %(object_name)s has no '
+                      'attribute named: %(attribute_name)s',
+                      {'object_name': self.__class__.__name__,
+                       'attribute_name': key})
             return None
         if value != NotSpecifiedSentinel and not self.obj_attr_is_set(key):
             return value