]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Remove use of deprecated LOG.warn
authorSean McGinnis <sean_mcginnis@dell.com>
Wed, 13 May 2015 14:30:20 +0000 (09:30 -0500)
committerSean McGinnis <sean_mcginnis@dell.com>
Wed, 13 May 2015 15:51:45 +0000 (10:51 -0500)
commitadfff0b1413814c58ea17338cccb2ca81c1b8641
treeb990b2298fb5042953d48ef36ed360ac12ea30aa
parent7a9afae72ddd377d3a224076d69bcbed7f88c6e4
Remove use of deprecated LOG.warn

LOG.warn is deprecated and LOG.warning should be used.

This patch fixes up instances of LOG.warn usage and adds a
hacking check to make sure it doesn't creep back in.

See Logger.warning note here for background:
https://docs.python.org/3/library/logging.html

Also cleaned up some remaining instances where logging was
preformatting strings rather than passing in formatting
arguments to the logger to handle.

Change-Id: Id2e6cba489d8509601820b5aed83652f71be2bdc
14 files changed:
HACKING.rst
cinder/hacking/checks.py
cinder/tests/unit/image/fake.py
cinder/tests/unit/integrated/integrated_helpers.py
cinder/tests/unit/integrated/test_volumes.py
cinder/tests/unit/integrated/test_xml.py
cinder/tests/unit/test_hds_iscsi.py
cinder/volume/api.py
cinder/volume/drivers/emc/emc_vmax_utils.py
cinder/volume/flows/api/create_volume.py
cinder/volume/qos_specs.py
cinder/volume/targets/iet.py
cinder/volume/throttling.py
cinder/volume/utils.py