b91207ae47
"log and throw" is arguably an anti-pattern; the error message either bubles-up into the exception, or the handler figures it out. We have an example where this logs, and then the handler in blockdevice.py catches it and logs it again. Less layers is better; just raise the exception, and use log.exception to get tracebacks where handled. Change-Id: I8efd94fbe52a3911253753f447afdb7565849185 |
||
---|---|---|
.. | ||
level0 | ||
level1 | ||
level2 | ||
level3 | ||
level4 | ||
tests | ||
__init__.py | ||
blockdevice.py | ||
cmd.py | ||
plugin_base.py | ||
tree_config.py | ||
utils.py |