Subham-KRLX commented on issue #63736:
URL: https://github.com/apache/airflow/issues/63736#issuecomment-4068654023

   I have traced the root cause. In Airflow 3, when a task fails the supervisor 
unpacks the exception from the JSON log line and stores it under the key 
error_detail in Elasticsearch — separate from the event field. However, 
TASK_LOG_FIELDS in es_task_handler.py only allows ["timestamp", "event", 
"level", "chan", "logger"] through when reading logs back, which silently drops 
error_detail before it ever reaches the UI. The fix is to include error_detail 
in TASK_LOG_FIELDS and render it as a formatted traceback alongside the log 
message. I will raise a PR for this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to