Skip to content

Commit

Permalink
use new log for exc_info_with_locals until mapping is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVerstraelen committed Jun 9, 2024
1 parent f674eb7 commit 5739cb6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions openeogeotrellis/deploy/batch_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,9 @@ 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, extra = {
"exc_info_with_locals": format_exc(most_recent_exception, fmt = fmt)
})
logger.exception("OpenEO batch job failed: " + error_summary.summary)
logger.error(
"Batch job error stack trace with locals",
extra={"exc_info_with_locals": format_exc(e, fmt = fmt)}
)
raise

0 comments on commit 5739cb6

Please sign in to comment.