You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/01/30 05:16:03 UTC

[GitHub] [airflow] baolsen commented on a change in pull request #7288: [AIRFLOW-6672] AWS DataSync - better logging of error message

baolsen commented on a change in pull request #7288: [AIRFLOW-6672] AWS DataSync - better logging of error message
URL: https://github.com/apache/airflow/pull/7288#discussion_r372762953
 
 

 ##########
 File path: airflow/providers/amazon/aws/operators/datasync.py
 ##########
 @@ -350,6 +350,16 @@ def _execute_datasync_task(self):
         )
         self.log.info("task_execution_description=%s",
                       task_execution_description)
+
+        # Log some meaningful statuses
+        log = self.log.info
+        if not result:
+            log = self.log.error
 
 Review comment:
   Thanks, your way is better. I'll update :)

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services