From 83b6f906db94d4397885ea7fb5fd5ebdce2244da Mon Sep 17 00:00:00 2001 From: Jan Richter Date: Mon, 9 Oct 2023 17:51:37 +0200 Subject: [PATCH] avocado.utils.download.url_open() log message update The log message of avocado.utils.download.url_open() might be misleading because it tells that a URL has been retrieved at a stage where only a response was obtained. This commit will update the message to be more precise. Reference: #5742 Signed-off-by: Jan Richter --- avocado/utils/download.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/avocado/utils/download.py b/avocado/utils/download.py index 88517f20cc..6798826b87 100644 --- a/avocado/utils/download.py +++ b/avocado/utils/download.py @@ -51,7 +51,10 @@ def url_open(url, data=None, timeout=5): log.error(msg) return None - msg = 'Retrieved URL "%s": content-length %s, date: "%s", last-modified: "%s"' + msg = ( + 'Opened URL "%s" and received response with headers including: ' + 'content-length %s, date: "%s", last-modified: "%s"' + ) log.debug( msg, url,