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



##########
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 will add a branch to display the phrase that it is turned off(`"Done. 
Returned value not shown"` which is mentioned by @potiuk) when the option is 
turned off.




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