Skip to content

Commit 5739cb6

Browse files
use new log for exc_info_with_locals until mapping is updated
1 parent f674eb7 commit 5739cb6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

openeogeotrellis/deploy/batch_job.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,9 @@ 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, extra = {
495-
"exc_info_with_locals": format_exc(most_recent_exception, fmt = fmt)
496-
})
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_with_locals": format_exc(e, fmt = fmt)}
498+
)
497499
raise

0 commit comments

Comments
 (0)