e135e43935
There were a lot of instances of exceptions being raised or logged incorrectly. When reraising an exception, "raise" should be called, not "raise ex". The second form will cause the original traceback to be modified to the new location. LOG.exception is the same as LOG.error with the additional behavior of logging any exception that is in the current scope. Therefore, doing something like "LOG.exception(ex)" is redundant and causes the exception message to be logged twice. Logging should be done with some sort of textual message without the exception object. Change-Id: I149c8fe7ef4b6628f910943587ab4302cc371441 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com> |
||
---|---|---|
.. | ||
api | ||
bench | ||
cmd | ||
common | ||
conf | ||
hacking | ||
locale | ||
notification | ||
storage | ||
tests | ||
transport | ||
__init__.py | ||
bootstrap.py | ||
context.py | ||
i18n.py | ||
version.py |