Whenever an unhandled exception is thrown, only the exception value is printed
as part of the log message. Printing just the value is sometimes not very
helpful to identify the problem. eg., in case of KeyError, only the 'key_name'
would be printed as part of the log message.
This commit includes the exception type along with value while logging an
unhandled exception.
Reviewed: https:/ /review. openstack. org/64820 /git.openstack. org/cgit/ openstack/ oslo-incubator/ commit/ ?id=d292f7d8b0d 20a29829d37aab1 58b38028f010c6
Committed: https:/
Submitter: Jenkins
Branch: master
commit d292f7d8b0d20a2 9829d37aab158b3 8028f010c6
Author: Venkatesh Sampath <email address hidden>
Date: Fri Jan 3 15:29:22 2014 +0530
Add error type to unhandled exception log message
Whenever an unhandled exception is thrown, only the exception value is printed
as part of the log message. Printing just the value is sometimes not very
helpful to identify the problem. eg., in case of KeyError, only the 'key_name'
would be printed as part of the log message.
This commit includes the exception type along with value while logging an
unhandled exception.
Change-Id: Ibf00173a07510b 2ec0c81a2962400 4f17810a4e4
Closes-Bug: #1265561