Skip to content

Commit

Permalink
Log api-server exception details in neutron
Browse files Browse the repository at this point in the history
Description: Neutron doesn't seem to return strings posted
by api-server to the user. So logging the exception details
in neutron logs. Previous commit was partial.

Change-Id: I912acf65155259a771ef5c14535186587a959afd
Closes-Bug: #1721609
  • Loading branch information
Suresh-vin committed Oct 30, 2017
1 parent 292fcbb commit 2987f94
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -84,6 +84,7 @@ def _raise_contrail_error(info, obj_name):
exc_name = info.get('exception')

if exc_name:
LOG.exception(str(exc_name) + str(info) + str(obj_name))
if str(exc_name) == 'OverQuota':
info['exception'] = str(info['exception'])
if 'msg' in info:
Expand Down

0 comments on commit 2987f94

Please sign in to comment.