Merge "Make logger inside wsgi a bit more informative"

This commit is contained in:
Jenkins 2014-04-03 21:08:11 +00:00 committed by Gerrit Code Review
commit e1f34fdfe8

View File

@ -679,8 +679,9 @@ class RequestDeserializer(object):
try:
content_type = request.get_content_type()
except exception.InvalidContentType:
LOG.debug(_("Unrecognized Content-Type provided in request"))
except exception.InvalidContentType as e:
msg = _("Unrecognized Content-Type provided in request: {0}")
LOG.debug(unicode(msg).format(str(e)))
raise
if content_type is None: