File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -281,13 +281,13 @@ def handle_http_exceptions(error: HTTPException):
281
281
@app .errorhandler (OpenEOApiException )
282
282
def handle_openeoapi_exception (error : OpenEOApiException , log_message : Optional [str ] = None ):
283
283
"""Error handler for OpenEOApiException"""
284
- most_recent_exception = sys .exc_info ()[1 ]
285
- fmt = Format (max_value_str_len = 1000 )
286
284
_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
+ # )
291
291
error_dict = error .to_dict ()
292
292
return jsonify (error_dict ), error .status_code
293
293
You can’t perform that action at this time.
0 commit comments