cli: switch to logging.exception for debug reporting of unrecoverable exception.

This commit is contained in:
Chris PeBenito 2016-03-04 13:59:21 -05:00
parent c017bd7cfa
commit 7d88a1424e
6 changed files with 9 additions and 15 deletions

5
apol
View File

@ -50,9 +50,8 @@ try:
except Exception as err:
if args.debug:
import traceback
traceback.print_exc()
logging.exception(str(err))
else:
print(err)
sys.exit(-1)
sys.exit(1)

3
sediff
View File

@ -1112,8 +1112,7 @@ try:
except Exception as err:
if args.debug:
import traceback
traceback.print_exc()
logging.exception(str(err))
else:
print(err)

3
sedta
View File

@ -152,8 +152,7 @@ try:
except Exception as err:
if args.debug:
import traceback
traceback.print_exc()
logging.exception(str(err))
else:
print(err)

5
seinfo
View File

@ -311,9 +311,8 @@ try:
except Exception as err:
if args.debug:
import traceback
traceback.print_exc()
logging.exception(str(err))
else:
print(err)
sys.exit(-1)
sys.exit(1)

View File

@ -123,8 +123,7 @@ try:
except Exception as err:
if args.debug:
import traceback
traceback.print_exc()
logging.exception(str(err))
else:
print(err)

View File

@ -198,9 +198,8 @@ try:
except Exception as err:
if args.debug:
import traceback
traceback.print_exc()
logging.exception(str(err))
else:
print(err)
sys.exit(-1)
sys.exit(1)