alex-astronomer opened a new pull request, #21281:
URL: https://github.com/apache/airflow/pull/21281

   The problem with `airflow tasks test ...` is that any `stdout` that comes 
from a task inside an operator or other callable does not go through a logger.  
It runs in the main process.  This results in secrets that are printed to 
`stdout` to not be masked according to the `airflow.task` logger.
   
   I wanted a way to capture and filter stdout without having to route 
everything through a secondary logger.  I decided a context manager that 
filters `stdout` would be the best way to go about this.  The context manager 
redacts all secrets according to the filters on the `airflow.task` logger.
   
   Closes #17476 
   


-- 
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]

Reply via email to