You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Fokko Driesprong (JIRA)" <ji...@apache.org> on 2018/09/09 17:03:00 UTC
[jira] [Resolved] (AIRFLOW-1917) print() from python operators end
up with extra new line
[ https://issues.apache.org/jira/browse/AIRFLOW-1917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fokko Driesprong resolved AIRFLOW-1917.
---------------------------------------
Resolution: Fixed
> 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)