diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2024-01-08 15:26:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-10 13:55:33 +0000 |
commit | 56b1af37dc61e06ef013b8c31248a91c475fffb1 (patch) | |
tree | b9ad6463553711a7e99a4fa4c59270f26c2640ff /bitbake/lib/bb/fetch2 | |
parent | 4890c6a7ca811fb7fd31ecad7fe7fae05f2c3340 (diff) | |
download | poky-56b1af37dc61e06ef013b8c31248a91c475fffb1.tar.gz |
bitbake: fetch/wget/checkstatus(): include the URL in debugging output about status check failure
Previously the output wasn't useful for finding out what was the actual
URL that failed, particularly in heavily multi-threaded invocations:
DEBUG: checkstatus() urlopen failed: HTTP Error 404: Not Found
With this change, the problem is described specifically:
DEBUG: checkstatus() urlopen failed for http://cdn.jsdelivr.net/yocto/sstate/all/universal/4f/91/sstate:gettext-minimal-native:x86_64-linux:0.22.4:r0:x86_64:11:4f91b650ebd7be601cbd0e3a37a8cc6385a3f4ee616f931969b50709ed8bf044_create_spdx.tar.zst: HTTP Error 404: Not Found
This will help with CDN cache tests in particular. When some object
isn't available, we need to know why: 4xx error, 5xx error, timeout
error or any other issue.
(Bitbake rev: ecd9b92815563509f55264ed6e7498aee797cedd)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index dc88317610..dc025800e6 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
@@ -375,7 +375,7 @@ class Wget(FetchMethod): | |||
375 | return self.checkstatus(fetch, ud, d, False) | 375 | return self.checkstatus(fetch, ud, d, False) |
376 | else: | 376 | else: |
377 | # debug for now to avoid spamming the logs in e.g. remote sstate searches | 377 | # debug for now to avoid spamming the logs in e.g. remote sstate searches |
378 | logger.debug2("checkstatus() urlopen failed: %s" % e) | 378 | logger.debug2("checkstatus() urlopen failed for %s: %s" % (uri,e)) |
379 | return False | 379 | return False |
380 | 380 | ||
381 | return True | 381 | return True |