[ https://issues.apache.org/jira/browse/AIRFLOW-1917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ash Berlin-Taylor updated AIRFLOW-1917: --------------------------------------- Fix Version/s: (was: 1.10.0) 1.10.1 > print() from python operators end up with extra new line > -------------------------------------------------------- > > Key: AIRFLOW-1917 > URL: https://issues.apache.org/jira/browse/AIRFLOW-1917 > Project: Apache Airflow > Issue Type: Bug > Affects Versions: 1.9.0 > Reporter: Ash Berlin-Taylor > Priority: Major > Fix For: 1.10.1 > > > If I have the following as the callable for a PythonOperator: > {code} > def print_stuff(ti, **kwargs): > print("Hi from", __file__) > print("Hi 2 from", __file__) > {code} > I see the following in the log files > {noformat} > [2017-12-13 10:45:53,901] {logging_mixin.py:84} INFO - Hi from > /usr/local/airflow/dags/example/csv_to_parquet.py > [2017-12-13 10:45:53,902] {logging_mixin.py:84} INFO - Hi 2 from > /usr/local/airflow/dags/example/csv_to_parquet.py > [2017-12-13 10:45:53,905] {base_task_runner.py:98} INFO - Subtask: > [2017-12-13 10:45:53,904] {python_operator.py:90} INFO - Done. Returned value > was: None > {noformat} > Note the extra blank lines. -- This message was sent by Atlassian JIRA (v7.6.3#76005)