amoghrajesh commented on code in PR #48186:
URL: https://github.com/apache/airflow/pull/48186#discussion_r2010124385
##########
task-sdk/src/airflow/sdk/log.py:
##########
@@ -96,6 +96,13 @@ def redact_jwt(logger: Any, method_name: str, event_dict:
EventDict) -> EventDic
return event_dict
+def mask_logs(logger: Any, method_name: str, event_dict: EventDict) ->
EventDict:
+ from airflow.sdk.execution_time.secrets_masker import redact
+
+ event_dict["event"] = redact(event_dict["event"])
+ return event_dict
Review Comment:
Thanks for the clarification, let me try that out.
--
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]