neutron/neutron/pecan_wsgi
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
..
controllers Remove "six" library 2020-07-28 16:55:52 +00:00
hooks Log exception generated in Controller.prepare_request_body 2020-08-18 16:18:34 -03:00
__init__.py Rename 'newapi' to 'pecan_wsgi' 2015-09-02 15:53:34 +00:00
app.py Fixes minor typo in neutron 2018-01-18 14:27:59 +08:00
constants.py Pecan: implement DHCP notifications in NotifierHook 2016-02-15 10:50:28 +00:00
startup.py consume neutron-lib resources attr map 2018-03-09 13:37:28 -07:00