ashb commented on a change in pull request #9363:
URL: https://github.com/apache/airflow/pull/9363#discussion_r445489669
##########
File path: airflow/config_templates/config.yml
##########
@@ -517,6 +517,17 @@
type: string
example: ~
default: "task"
+ - name: donot_modify_handlers
+ description: |
+ If ``donot_modify_handlers = True``, we do not modify logging handlers
in task_run command.
+ If the flag is set to False, we remove all handlers from the root
logger.
+ and add all handlers from 'airflow.task' logger to the root Logger.
This is done
+ to get all the logs from the print & log statements in the DAG files
before a task is run
+ The handlers are restored after the task completes execution.
+ version_added: ~
+ type: boolean
+ example: ~
+ default: "False"
Review comment:
I think this should be a hidden setting -- i.e. not actually documented,
nor appearing in default_airflow.cfg
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]