diff --git a/vllm_omni/entrypoints/omni_llm.py b/vllm_omni/entrypoints/omni_llm.py index 327b88034..bfca19573 100644 --- a/vllm_omni/entrypoints/omni_llm.py +++ b/vllm_omni/entrypoints/omni_llm.py @@ -350,11 +350,14 @@ class OmniLLM: made_progress = True req_id = result.get("request_id") if "error" in result: + error_msg = result.get("error", "Unknown error") + error_tb = result.get("error_tb", "") logger.error( - "Stage %s error on request %s: %s", + "Stage %s error on request %s: %s\n%s", stage_id, req_id, - result["error"], + error_msg, + error_tb, ) continue diff --git a/vllm_omni/entrypoints/omni_stage.py b/vllm_omni/entrypoints/omni_stage.py index 95d9a492b..4e44b6524 100644 --- a/vllm_omni/entrypoints/omni_stage.py +++ b/vllm_omni/entrypoints/omni_stage.py @@ -17,6 +17,7 @@ import logging import multiprocessing as mp import os import sys +import traceback from typing import Any from vllm.inputs import TextPrompt @@ -857,12 +858,14 @@ def _stage_worker( ) except Exception as e: _logging.getLogger(__name__).exception("[Stage-%s] Failed on batch %s: %s", stage_id, batch_request_ids, e) + _tb = traceback.format_exc() for rid in batch_request_ids: out_q.put( { "request_id": rid, "stage_id": stage_id, "error": str(e), + "error_tb": _tb, } )