uranusjr commented on a change in pull request #19378:
URL: https://github.com/apache/airflow/pull/19378#discussion_r747248596



##########
File path: airflow/operators/python.py
##########
@@ -171,7 +178,8 @@ def execute(self, context: Dict):
         self.op_kwargs = determine_kwargs(self.python_callable, self.op_args, 
context)
 
         return_value = self.execute_callable()
-        self.log.info("Done. Returned value was: %s", return_value)
+        if self.show_return_value_in_logs:
+            self.log.info("Done. Returned value was: %s", return_value)

Review comment:
       I wonder we should still log something here (just don’t show the return 
value). No strong opinion here though.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to