Taragolis commented on code in PR #28911:
URL: https://github.com/apache/airflow/pull/28911#discussion_r1069248350
##########
airflow/providers/http/hooks/http.py:
##########
@@ -147,7 +147,11 @@ def run(
req = requests.Request(self.method, url, data=data,
headers=headers, **request_kwargs)
prepped_request = session.prepare_request(req)
- self.log.info("Sending '%s' to url: %s", self.method, url)
+
+ log_request = request_kwargs.pop('log_request', True)
+ if log_request:
+ self.log.info("Sending '%s' to url: %s", self.method, url)
Review Comment:
You need to control logging by setup correct LOGGING_LEVEL (severity) rather
then add additional parameters.
If you think that HttpHook info produce to much logs you need to change only
`self.log.info` to `self.log.debug`
For additional logging control you could specify you own
[logging.config](https://docs.python.org/3/library/logging.config.html#), see:
https://airflow.apache.org/docs/apache-airflow/stable/logging-monitoring/logging-tasks.html#advanced-configuration
--
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]