Skip to content

Commit

Permalink
Revert "use exc_info field for exc_info_with_locals in batch jobs"
Browse files Browse the repository at this point in the history
This reverts commit 9ef9f34.
  • Loading branch information
JeroenVerstraelen committed Jun 9, 2024
1 parent 9ef9f34 commit f674eb7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions openeogeotrellis/deploy/batch_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,7 @@ def _extract_and_install_udf_dependencies(process_graph: dict, job_dir: Path):
error_summary = GeoPySparkBackendImplementation.summarize_exception_static(e)
most_recent_exception = sys.exc_info()[1]
fmt = Format(max_value_str_len=1000)
logger.exception("OpenEO batch job failed: " + error_summary.summary)
logger.error(
"Batch job error stack trace with locals",
extra={"exc_info": format_exc(most_recent_exception, fmt = fmt)}
)
logger.exception("OpenEO batch job failed: " + error_summary.summary, extra = {
"exc_info_with_locals": format_exc(most_recent_exception, fmt = fmt)
})
raise

0 comments on commit f674eb7

Please sign in to comment.