~charles/bem

5d61a6d8641e2ddd95454f48820651aac54b7ab5 — Charles Daniels 4 years ago e2abb94
log exceptions in execute_command
2 files changed, 1 insertions(+), 1 deletions(-)

M bem/bem_cli.py
M bem/bem_util.py
M bem/bem_cli.py => bem/bem_cli.py +1 -0
@@ 103,6 103,7 @@ def bem_cli():
    try:
        bem_engine.execute_command(config, args.command)
    except Exception as e:
        bem_util.log_exception(e)
        if 'executable file not found in $PATH": unknown' in str(e):
            logging.error("command '{}' not found".format(' '.join(args.command)))
        else:

M bem/bem_util.py => bem/bem_util.py +0 -1
@@ 64,7 64,6 @@ def setup_logging(level="INFO"):


def log_exception(e):
    logging.error("Exception: {}".format(e))
    logging.debug("".join(traceback.format_tb(e.__traceback__)))