Repository: incubator-airflow
Updated Branches:
  refs/heads/v1-10-test 23191605e -> 48847d737


[AIRFLOW-2752] Log using logging instead of stdout

Logging should be done using the Python log module
instead of writing directly to stdout

Closes #3604 from Fokko/patch-2

(cherry picked from commit 846e2746c0be3d9e55edd3351ae9f43228ea48a5)
Signed-off-by: Bolke de Bruin <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/48847d73
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/48847d73
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/48847d73

Branch: refs/heads/v1-10-test
Commit: 48847d737e5e4565f77501ef52d61060ecf072f4
Parents: 2319160
Author: Fokko Driesprong <[email protected]>
Authored: Sun Jul 15 17:56:18 2018 +0200
Committer: Bolke de Bruin <[email protected]>
Committed: Sun Jul 15 17:56:45 2018 +0200

----------------------------------------------------------------------
 airflow/executors/base_executor.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/48847d73/airflow/executors/base_executor.py
----------------------------------------------------------------------
diff --git a/airflow/executors/base_executor.py 
b/airflow/executors/base_executor.py
index 04c9088..701ac66 100644
--- a/airflow/executors/base_executor.py
+++ b/airflow/executors/base_executor.py
@@ -150,7 +150,7 @@ class BaseExecutor(LoggingMixin):
         self.sync()
 
     def change_state(self, key, state):
-        print("popping: {}".format(key))
+        self.log.debug("Changing state: {}".format(key))
         self.running.pop(key)
         self.event_buffer[key] = state
 

Reply via email to