ashb commented on a change in pull request #17618:
URL: https://github.com/apache/airflow/pull/17618#discussion_r688986409
##########
File path: airflow/utils/log/secrets_masker.py
##########
@@ -144,6 +144,13 @@ def _record_attrs_to_ignore(self) -> Iterable[str]:
)
return frozenset(record.__dict__).difference({'msg', 'args'})
+ def _redact_exception_with_context(self, exception):
+ exception.args = (self.redact(v) for v in exception.args)
+ if exception.__context__:
+ self._redact_exception_with_context(exception.__context__)
+ if exception.__cause__:
Review comment:
```suggestion
if exception.__cause__ and exception.__cause__ is not
exception.__context__:
```
to avoid processing it twice?
--
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]