]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
misc.sh(): Don't log.exception() before raise
authorZack Cerza <zack@redhat.com>
Fri, 23 Oct 2015 22:00:06 +0000 (16:00 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 23 Oct 2015 23:42:25 +0000 (17:42 -0600)
commita10cda2b6f1f69385944fde5ae5de6dbee22ced4
treee5bc08a68e6055fddadcaa84b50a064c68cee7fc
parentfa9db0436fd10b4f97edc375f1300c515180c35f
misc.sh(): Don't log.exception() before raise

log.exception() logs the traceback, and raise will also cause it to be
logged. There's no need to have it logged twice; additionally, when sh()
was being called within a try/except clause we were confusingly logging
an expected failure. Callers can choose to log if they want.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/misc.py