diff mbox series

[08/14] channel_curl: Consolidate effective URL logging

Message ID 20200914145712.4989-8-christian.storm@siemens.com
State Accepted
Headers show
Series [01/14] channel_curl: Make setting request_body symmetric | expand

Commit Message

Storm, Christian Sept. 14, 2020, 2:57 p.m. UTC
Make channel_get() call channel_log_effective_url() without
the channel_data->debug condition as it's done in all other
channel methods.

Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 corelib/channel_curl.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/corelib/channel_curl.c b/corelib/channel_curl.c
index e40bbff..53ebc2d 100644
--- a/corelib/channel_curl.c
+++ b/corelib/channel_curl.c
@@ -1153,9 +1153,7 @@  channel_op_res_t channel_get(channel_t *this, void *data)
 		goto cleanup_header;
 	}
 
-	if (channel_data->debug) {
-		channel_log_effective_url(this);
-	}
+	channel_log_effective_url(this);
 
 	result = channel_map_http_code(this, &channel_data->http_response_code);