You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2017/12/13 10:58:00 UTC

[jira] [Created] (AIRFLOW-1917) print() from python operators end up with extra new line

Ash Berlin-Taylor created AIRFLOW-1917:
------------------------------------------

             Summary: 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
             Fix For: 1.9.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
(v6.4.14#64029)