yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #08442
[Bug 1265561] Re: Log message printed for unhandled exception is not very helpful.
** Also affects: glance
Importance: Undecided
Status: New
** Changed in: glance
Assignee: (unassigned) => Venkatesh Sampath (venkateshsampath)
** Changed in: glance
Status: New => In Progress
** Description changed:
Currently, on an unhandled exception, the error message logged through
sys.excepthook is not very helpful.
Currently it prints only the exception_value.
https://github.com/openstack/oslo-incubator/blob/master/openstack/common/log.py#L396
Fix:
Make the log message print both the exception_type and exception_value of the unhandled exception.
- The best thing would be print exception_type, exception_value along with
- its traceback.
-
PS: Currently the traceback is printed only when the VERBOSE is ON.
-
- Question: Can the traceback be printed as part of the log message even
- if the VERBOSE is OFF only in this case of logging unhandled exception.
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1265561
Title:
Log message printed for unhandled exception is not very helpful.
Status in OpenStack Image Registry and Delivery Service (Glance):
In Progress
Status in Oslo - a Library of Common OpenStack Code:
Fix Committed
Bug description:
Currently, on an unhandled exception, the error message logged through
sys.excepthook is not very helpful.
Currently it prints only the exception_value.
https://github.com/openstack/oslo-incubator/blob/master/openstack/common/log.py#L396
Fix:
Make the log message print both the exception_type and exception_value of the unhandled exception.
PS: Currently the traceback is printed only when the VERBOSE is ON.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1265561/+subscriptions