utkarsharma2 commented on code in PR #35048:
URL: https://github.com/apache/airflow/pull/35048#discussion_r1365832533
##########
airflow/utils/log/secrets_masker.py:
##########
@@ -279,9 +279,9 @@ def _redact(self, item: Redactable, name: str | None,
depth: int, max_depth: int
# but it caused infinite recursion, so we need to cast it to str first.
except Exception as exc:
log.warning(
- "Unable to redact %r, please report this via
<https://github.com/apache/airflow/issues>. "
+ "Unable to redact %s, please report this via
<https://github.com/apache/airflow/issues>. "
"Error was: %s: %s",
- item,
+ repr(item),
Review Comment:
@Taragolis Just curious, should we print the `item` in logs at all, It kinda
defeats the purpose of `mask_secrets` filters right? maybe instead we can just
print the class name? or just enough information to debug?
--
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]