]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Log exception.msg before exception.message
authorKevin Benton <blak111@gmail.com>
Tue, 15 Sep 2015 17:22:35 +0000 (10:22 -0700)
committerKevin Benton <blak111@gmail.com>
Tue, 15 Sep 2015 18:58:21 +0000 (11:58 -0700)
commit3cf7838344fa009060253bf8ead3c28278f8f54a
tree7ebc8f8b596bd1c416fb60c254a28af7025a41ba
parent4e4a6cff5d257c85fb062d660ef2d1c9d0941ce9
Log exception.msg before exception.message

The exception translation hook was logging the exception messages
before variables were interpolated, making it really unhelpful.
This patch corrects that and falls back to e.message if e.msg isn't
available.

Change-Id: I331444d577b03257db2fcc96324d020eff9bef08
neutron/pecan_wsgi/hooks/translation.py