Skip to content

Commit f674eb7

Browse files
Revert "use exc_info field for exc_info_with_locals in batch jobs"
This reverts commit 9ef9f34.
1 parent 9ef9f34 commit f674eb7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

openeogeotrellis/deploy/batch_job.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,7 @@ def _extract_and_install_udf_dependencies(process_graph: dict, job_dir: Path):
491491
error_summary = GeoPySparkBackendImplementation.summarize_exception_static(e)
492492
most_recent_exception = sys.exc_info()[1]
493493
fmt = Format(max_value_str_len=1000)
494-
logger.exception("OpenEO batch job failed: " + error_summary.summary)
495-
logger.error(
496-
"Batch job error stack trace with locals",
497-
extra={"exc_info": format_exc(most_recent_exception, fmt = fmt)}
498-
)
494+
logger.exception("OpenEO batch job failed: " + error_summary.summary, extra = {
495+
"exc_info_with_locals": format_exc(most_recent_exception, fmt = fmt)
496+
})
499497
raise

0 commit comments

Comments
 (0)