orchestrator: Log exception to log file

This data can be useful for debugging.

JIRA: COMPOSE-3284
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-02-27 09:56:29 +01:00
parent 8b84aa384a
commit afd2d3ae66
1 changed files with 5 additions and 1 deletions

View File

@ -544,5 +544,9 @@ def main(argv=None):
main_config_file = os.path.abspath(args.config)
with temp_dir() as work_dir:
if not run(work_dir, main_config_file, args):
try:
if not run(work_dir, main_config_file, args):
sys.exit(1)
except Exception:
log.exception("Unhandled exception!")
sys.exit(1)