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



##########
File path: airflow/operators/python.py
##########
@@ -171,7 +171,7 @@ 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)
+        self.log.debug("Done. Returned value was: %s", return_value)

Review comment:
       I do not think, changing the log level is good solution. There are many 
use cases where peopel might rely on the return value appear in logs.
   
   I think better one might be to add optional parameter (default to True) 
`show_return_value_in_logs` that could be set to False tu suppress printing the 
value to the logs - with appropriate explanation of the "big" values.




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