chore: Adding traceback logging to inference step of eval

Right now the failure eats up the traceback information and there is no clear way for the developer to know what went wrong. Adding this traceback info could give them the needed debugging information.

PiperOrigin-RevId: 823179833
This commit is contained in:
Ankur Sharma
2025-10-23 14:05:06 -07:00
committed by Copybara-Service
parent ba631764a5
commit bb32a6356c
@@ -432,9 +432,10 @@ class LocalEvalService(BaseEvalService):
# We intentionally catch the Exception as we don't failures to affect
# other inferences.
logger.error(
'Inference failed for eval case `%s` with error %s',
'Inference failed for eval case `%s` with error %s.',
eval_case.eval_id,
e,
exc_info=True,
)
inference_result.status = InferenceStatus.FAILURE
inference_result.error_message = str(e)