Remove cinder.context warning logging

The code removed creates a large volume of log entries that are of
limited use. Removing them should improve the readability of the logs.

Change-Id: I2a7f20cfa6cd57aa7ae05bf9685947207cbb9502
Closes-Bug: #1329156
This commit is contained in:
git-harry 2014-07-07 10:53:43 +01:00
parent 098ae21d9d
commit c04709b127
2 changed files with 0 additions and 19 deletions

View File

@ -59,9 +59,6 @@ class RequestContext(object):
:param kwargs: Extra arguments that might be present, but we ignore
because they possibly came in from older rpc messages.
"""
if kwargs:
LOG.warn(_('Arguments dropped when creating context: %s') %
str(kwargs))
self.user_id = user_id
self.project_id = project_id

View File

@ -54,22 +54,6 @@ class ContextTestCase(test.TestCase):
'read_deleted',
True)
def test_extra_args_to_context_get_logged(self):
info = {}
def fake_warn(log_msg):
info['log_msg'] = log_msg
self.stubs.Set(context.LOG, 'warn', fake_warn)
c = context.RequestContext('user',
'project',
extra_arg1='meow',
extra_arg2='wuff')
self.assertTrue(c)
self.assertIn("'extra_arg1': 'meow'", info['log_msg'])
self.assertIn("'extra_arg2': 'wuff'", info['log_msg'])
def test_service_catalog_nova_only(self):
service_catalog = [
{u'type': u'compute', u'name': u'nova'},