]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Standardize logging in volume.api.py
authorJohn Griffith <john.griffith8@gmail.com>
Fri, 17 Apr 2015 20:51:06 +0000 (20:51 +0000)
committerJohn Griffith <john.griffith8@gmail.com>
Mon, 20 Apr 2015 14:58:59 +0000 (08:58 -0600)
commite9bc08f0ada2831dee4f3cd5a936cdc2f21fef6d
tree85ceb9a57cd84815f6f5530d1fd25a90a408e20d
parentc6ccf2fc346d7033a0147752b77c0a916f3413ea
Standardize logging in volume.api.py

We now have resource tag support in oslo logging,
and our logging is pretty inconsistent and down right
ugly in places.  Let's clean things up based on the
standard logging guidelines and use the fancy new
resource tag.

This patch starts with the volume.api file as that's
'easy', so we can enforce things going forward and start
working out other files in future patches.

To use set the following in cinder.conf:
logging_context_format_string = \
%(asctime)s.%(msecs)03d %(levelname)s %(name)s [%(request_id)s \
%(project_name)s] %(resource)s%(message)s

Change-Id: I78708ba8bc372c2ca051aa7d84386dc7125a9b5e
cinder/volume/api.py