cinder/cinder/api/openstack
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
..
__init__.py Remove log translations 2017-03-19 14:59:57 +00:00
api_version_request.py Add user_id in backup list and show API 2018-12-12 00:52:05 -05:00
rest_api_version_history.rst Add user_id in backup list and show API 2018-12-12 00:52:05 -05:00
versioned_method.py cinder-api-microversions code 2016-02-24 06:50:54 -07:00
wsgi.py Handle string status codes in logging 2018-12-21 10:41:57 -06:00