You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Christopher (Jira)" <ji...@apache.org> on 2020/03/15 01:59:00 UTC
[jira] [Created] (AIRFLOW-7065) Give StreamLogHandler ability to
tee to log and console
Christopher created AIRFLOW-7065:
------------------------------------
Summary: Give StreamLogHandler ability to tee to log and console
Key: AIRFLOW-7065
URL: https://issues.apache.org/jira/browse/AIRFLOW-7065
Project: Apache Airflow
Issue Type: Improvement
Components: logging
Affects Versions: 1.10.9
Reporter: Christopher
Assignee: Christopher
It would be helpful in some use case (ie log aggregation) to have Airflow task output stream to console as well as go through the Airflow logger. Currently stdout and stderr are captured and sent only to the logger - putting a StreamLogHandler in the logging chain results in an infinite recursion.
I propose adding a configuration flag [core][task_console_output] that would allow safe display of messages in the console as well as propagation to the Airflow logging chain.
I will put in a PR for this shortly and see how it goes.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)