fjmacagno opened a new issue, #31655: URL: https://github.com/apache/airflow/issues/31655
### Description Add an option for `airflow dags list-import-errors` command like `-q` which suppresses all logging, in order to print just the intended output. ### Use case/motivation I want to make a CI test which confirms that there are no dag import errors, and the easiest way that it seems to do that is to parse the output of `airflow dags list-import-errors`, something like ``` airflow dags list-import-errors -o json | jq -e 'select(type=="array" and length == 0)' ``` However, if there is any logging that occurs in `list-import-errors` it breaks the test, and it isn't always possible to remove the logging statement (currently [this](https://github.com/datahub-project/datahub/blob/4ade1311f179d16dc95b6ebf412dc88c846f02c2/metadata-ingestion/src/datahub_provider/_plugin.py#L354) is messing me up). ### Related issues _No response_ ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
