aritra24 commented on code in PR #63028:
URL: https://github.com/apache/airflow/pull/63028#discussion_r2906737607
##########
airflow-core/src/airflow/api_fastapi/common/exceptions.py:
##########
@@ -74,22 +74,26 @@ def exception_handler(self, request: Request, exc:
IntegrityError):
for tb in traceback.format_tb(exc.__traceback__):
stacktrace += tb
- log_message = f"Error with id {exception_id}\n{stacktrace}"
+ log_message = f"Error with id {exception_id}, statement:
{exc.statement}\n{stacktrace}"
Review Comment:
True, but for expose stracktrace=False the statement gets lost, so logging
it into the log file seemed like it'd be helpful if an admin wants to refer
back to it? WDYT?
--
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]