neutron/neutron/api/v2
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 Remove invalid copyright headers under API module 2014-04-02 11:09:03 -07:00
base.py Log exception generated in Controller.prepare_request_body 2020-08-18 16:18:34 -03:00
resource.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
resource_helper.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
router.py Delete dead API v2 router code 2017-09-13 15:11:49 -07:00