cinder/cinder/api
Sean McGinnis 6b863310e5
Handle string status codes in logging
Observed on "too many database connections" the following error in the
log:

Error formatting log line msg=u'*(url)s returned with HTTP *(status)d'
    err=TypeError('*d format: a number is required, not str',)

This was due to the format string using %d where somehow the result code
was actually a string. Since formatting numbers works with %s, and is
actually sometimes more performant, this just switches %d to %s to be
more flexible.

Change-Id: I52d6fb46c5ab0f2fa24c629697daaf39d35584c3
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-12-21 10:41:57 -06:00
..
contrib Merge "Add policy granularity to the encryption API" 2018-09-25 08:55:32 +00:00
middleware Handle string status codes in logging 2018-12-21 10:41:57 -06:00
openstack Handle string status codes in logging 2018-12-21 10:41:57 -06:00
schemas Allow extra parameters in volume_type_encryption 2018-08-08 15:17:03 -05:00
v2 Remove deprecated query_volume_filters config option 2018-11-28 15:53:44 +00:00
v3 Add user_id in backup list and show API 2018-12-12 00:52:05 -05:00
validation Remove DeprecationWarning of "decodestring()" 2018-11-02 14:41:51 +07:00
views Transfer snapshots with volumes 2018-07-19 09:42:43 +08:00
__init__.py Remove API v1 2017-09-06 07:39:10 -05:00
common.py Remove deprecated query_volume_filters config option 2018-11-28 15:53:44 +00:00
extensions.py V3 jsonschema validation: Volumes 2018-06-29 11:51:50 +05:30
microversions.py Add user_id in backup list and show API 2018-12-12 00:52:05 -05:00
urlmap.py Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
versions.py Exclude disabled API versions from listing 2018-09-26 23:31:46 +00:00