neutron/neutron/pecan_wsgi/hooks
Rafael Weingärtner 2f0c352973 Log exception generated in Controller.prepare_request_body
While implementing some Neutron extension, I noticed that whenever a parameter
that is expected by the API is not entered, we receive an internal error
message. However, from the user/operator/dev calling the API, it might not be
clear what the error is. Therefore, we should at least, log these validation
errors.

This patch proposes to enclose the call to Controller.prepare_request_body with
a try/except block, and then we log the exception in warning level. After
logging the exception, we raise it to allow the normal execution flow to
continue.

Change-Id: I855442ee8c0c4b4f0aff19968a5db07fca898146
2020-08-18 16:18:34 -03:00
..
__init__.py Pecan: process filters at end of hook pipeline 2017-08-31 13:56:19 -07:00
body_validation.py Log exception generated in Controller.prepare_request_body 2020-08-18 16:18:34 -03:00
context.py Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
notifier.py remove neutron.common.rpc 2019-02-06 11:05:55 -07:00
ownership_validation.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
policy_enforcement.py Use list instead of six.viewkeys to avoid py2 to py3 problems 2019-05-30 14:39:39 -04:00
query_parameters.py Implement filter validation 2018-07-19 04:13:43 +00:00
quota_enforcement.py Set DB retry for quota_enforcement pecan_wsgi hook 2019-11-08 15:34:17 +04:00
translation.py Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
userfilters.py Pecan: process filters at end of hook pipeline 2017-08-31 13:56:19 -07:00
utils.py Pecan: Handle member actions 2016-08-30 00:34:02 -05:00