mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
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:
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
|
# We intentionally catch the Exception as we don't failures to affect
|
||||||
# other inferences.
|
# other inferences.
|
||||||
logger.error(
|
logger.error(
|
||||||
'Inference failed for eval case `%s` with error %s',
|
'Inference failed for eval case `%s` with error %s.',
|
||||||
eval_case.eval_id,
|
eval_case.eval_id,
|
||||||
e,
|
e,
|
||||||
|
exc_info=True,
|
||||||
)
|
)
|
||||||
inference_result.status = InferenceStatus.FAILURE
|
inference_result.status = InferenceStatus.FAILURE
|
||||||
inference_result.error_message = str(e)
|
inference_result.error_message = str(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user