Skip to content

Commit bb32a63

Browse files
ankursharmascopybara-github
authored andcommitted
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
1 parent ba63176 commit bb32a63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/google/adk/evaluation/local_eval_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,10 @@ async def _perform_inference_sigle_eval_item(
432432
# We intentionally catch the Exception as we don't failures to affect
433433
# other inferences.
434434
logger.error(
435-
'Inference failed for eval case `%s` with error %s',
435+
'Inference failed for eval case `%s` with error %s.',
436436
eval_case.eval_id,
437437
e,
438+
exc_info=True,
438439
)
439440
inference_result.status = InferenceStatus.FAILURE
440441
inference_result.error_message = str(e)

0 commit comments

Comments
 (0)