sreev opened a new issue #11366: URL: https://github.com/apache/airflow/issues/11366
airflow (LoggingMixin) -> NEW_DAG (airflow.models.DAG, LoggingMixin) -> a library (logging) -> another library (logging) my_dag.py: dag = NEW_DAG(...) SomeOperator(..., dag=dag) a library (logging): this has log = logging.getLogger(__name__) Attempt 1: In NEW_DAG.__init__: self.log.info(..) : these lines appear in the terminal where i started airflow. and none from rest of the methods. Attempt 2: I added log = logging.getLogger(__name__) in NEW_DAG. log.info(..) : these lines appear until __init__ is called, in the terminal where i started airflow. and none from anywhere else, including methods. In __init__: self.log.info(..) : these lines appear in the terminal where i started airflow. and none from rest of the methods. Attempt 3: I added log = logging.getLogger(__name__) in NEW_DAG. And removed LoggingMixin form class NEW_DAG(airflow.models.DAG) log.info(..) : these lines appear until __init__ is called, in the terminal where i started airflow. and none from anywhere else, including methods. ---------------------------------------------------------------- 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]
