]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add request-id to log messages
authorAkihiro MOTOKI <motoki@da.jp.nec.com>
Wed, 16 Oct 2013 10:43:10 +0000 (19:43 +0900)
committerAkihiro MOTOKI <motoki@da.jp.nec.com>
Thu, 21 Nov 2013 08:01:33 +0000 (17:01 +0900)
commit78836be994d172e7b5f64333144bf5e1f8bd0436
tree4eada970ed9ff5e60da276945f543537863deeea
parentbc18247313f8153875e98b59ef876b896d9033d5
Add request-id to log messages

request-id needs to be stored in thread local store to allow
openstack.common.log use request-id.
tenant_name and user_name are added to the context so that
they can be logged by customizing the log format.

Also replaces 'cxt' with 'ctx' in test_neutron_context.py.
Previously both 'ctx' and 'cxt' are used mixed in one file.

Change-Id: Ib921585e648e92491c1366bc0ad26a6ae71e2fc9
Partial-Bug: #1239923
neutron/auth.py
neutron/context.py
neutron/tests/unit/test_auth.py
neutron/tests/unit/test_neutron_context.py