Skip to content

Commit 2157e8e

Browse files
temporarily disable exc_info_with_locals
1 parent ea0a7e9 commit 2157e8e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

openeo_driver/views.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,13 @@ def handle_http_exceptions(error: HTTPException):
281281
@app.errorhandler(OpenEOApiException)
282282
def handle_openeoapi_exception(error: OpenEOApiException, log_message: Optional[str] = None):
283283
"""Error handler for OpenEOApiException"""
284-
most_recent_exception = sys.exc_info()[1]
285-
fmt = Format(max_value_str_len=1000)
286284
_log.error(log_message or repr(error), exc_info=True)
287-
_log.error(
288-
"Sync request error stack trace with locals",
289-
extra={"exc_info_with_locals": format_exc(most_recent_exception, fmt=fmt)},
290-
)
285+
# most_recent_exception = sys.exc_info()[1]
286+
# fmt = Format(max_value_str_len=1000)
287+
# _log.error(
288+
# "Sync request error stack trace with locals",
289+
# extra={"exc_info_with_locals": format_exc(most_recent_exception, fmt=fmt)},
290+
# )
291291
error_dict = error.to_dict()
292292
return jsonify(error_dict), error.status_code
293293

0 commit comments

Comments
 (0)