]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Stop logging unnecessary warning on context create
authorMaru Newby <marun@redhat.com>
Wed, 27 Nov 2013 07:57:48 +0000 (07:57 +0000)
committerMaru Newby <marun@redhat.com>
Thu, 28 Nov 2013 09:17:18 +0000 (09:17 +0000)
commit5b61df1f539d78cf9d164a142d731e471aa18d4e
tree012de49ad40809f81e6be5f13c684add0741025f
parent522ec7de544e3b216372f6db5d6c5ace24246dd8
Stop logging unnecessary warning on context create

The context was previously logging at the 'warn' level when unknown
kwargs were being passed to its __init__().  Since the agents were
passing tenant=None with each rpc request, this was generating an
unreasonable amount of log chatter that would not be useful to an
operator.  The fix is to log at the debug level instead so that
the operators don't see the output by default but developers can
still choose to.

Change-Id: I5c328f628c597eb949c1fe67b23120d2b5d1c7da
Related-Bug: #1254530
Partial-Bug: #1255441
neutron/context.py
neutron/tests/unit/test_neutron_context.py