From 29a2c85206d6bffe867e02c103c49aa5dbfda3da Mon Sep 17 00:00:00 2001 From: Jasha <8935917+Jasha10@users.noreply.github.com> Date: Sat, 14 Jan 2023 07:41:09 +0000 Subject: [PATCH] Use log.exception in `run_job` failure case --- hydra/core/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hydra/core/utils.py b/hydra/core/utils.py index 378f88b91d2..5caa49c4ac3 100644 --- a/hydra/core/utils.py +++ b/hydra/core/utils.py @@ -4,7 +4,6 @@ import os import re import sys -import traceback from contextlib import contextmanager from dataclasses import dataclass from datetime import datetime @@ -189,7 +188,7 @@ def run_job( except Exception as e: name = "HYDRA_FULL_ERROR" if name in os.environ and os.environ[name] == "1": - log.info(traceback.format_exc()) + log.exception("Got error while running job") ret.return_value = e ret.status = JobStatus.FAILED