uranusjr commented on a change in pull request #20039:
URL: https://github.com/apache/airflow/pull/20039#discussion_r763746096
##########
File path: airflow/utils/log/secrets_masker.py
##########
@@ -213,11 +213,13 @@ def _redact(self, item: "RedactableItem", name:
Optional[str], depth: int) -> "R
else:
return item
# I think this should never happen, but it does not hurt to leave it
just in case
+ # Well. It happened (see
https://github.com/apache/airflow/issues/19816#issuecomment-983311373)
+ # but it caused infinite recursion, so we need to cast it to str first.
except Exception as e:
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,
+ item.repr(),
Review comment:
```suggestion
repr(item),
```
?
--
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]