yaming-github commented on code in PR #54433:
URL: https://github.com/apache/airflow/pull/54433#discussion_r2284066652
##########
task-sdk/src/airflow/sdk/log.py:
##########
@@ -451,7 +460,9 @@ def _showwarning(
_warnings_showwarning(message, category, filename, lineno, file,
line)
else:
log = structlog.get_logger(logger_name="py.warnings")
- log.warning(str(message), category=category.__name__,
filename=filename, lineno=lineno)
+ log.warning(
+ str(message), category=category.__name__,
filename=os.path.basename(filename), lineno=lineno
Review Comment:
Sounds good. Updated. Don't we want to keep consistency for warning and
logging? Or I should update all filename to be the full path?
--
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]