commit 7a895c67b1c2be1a4be17203c06f023aaf371546
Author: Chris Dent <email address hidden>
Date: Wed Aug 2 14:19:34 2017 +0100
[placement] Avoid error log on 405 response
Treat HTTPMethodNotAllowed as a WSGI application rather than exception
so that it is not treated as an uncaught exception and logged as an ERROR
in the PlacementHandler before being caught in the FaultWrapper middleware.
Bad method detection is happening outside the context of WebOb wsgify
handling (which automatically catches Webob exceptions and transforms
them into appropriate responses) so we need to do the transformation
ourself.
This will help to avoid spurious noise in the logs. See the bug report
for more detail.
Reviewed: https:/ /review. openstack. org/490021 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=7a895c67b1c 2be1a4be17203c0 6f023aaf371546
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7a895c67b1c2be1 a4be17203c06f02 3aaf371546
Author: Chris Dent <email address hidden>
Date: Wed Aug 2 14:19:34 2017 +0100
[placement] Avoid error log on 405 response
Treat HTTPMethodNotAl lowed as a WSGI application rather than exception
so that it is not treated as an uncaught exception and logged as an ERROR
in the PlacementHandler before being caught in the FaultWrapper middleware.
Bad method detection is happening outside the context of WebOb wsgify
handling (which automatically catches Webob exceptions and transforms
them into appropriate responses) so we need to do the transformation
ourself.
This will help to avoid spurious noise in the logs. See the bug report
for more detail.
Change-Id: I6de7c2bffb08f3 70fcfbd86070c94 263ee202f93
Closes-Bug: #1708167