jason810496 opened a new pull request, #68781:
URL: https://github.com/apache/airflow/pull/68781

   ## Why
   
   While trying to setup cloudwatch remote logging in 
https://github.com/apache/airflow/pull/68709 in order to persist the logs in 
real time. I caught another error that if API server encounter 
`ResourceNotFoundException` error from cloudwatch remote logging setup, it will 
raise internal error with `500` status code instead of showing verbose hints 
for user on Airflow UI.
   
   ## What
   
   Capture the exception and return user-facing error message as 
`CloudWatchLogEvent` compatible format so that it could show on the Airflow UI 
properly.


-- 
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