From: Peter Amstutz Date: Mon, 7 Nov 2022 22:00:58 +0000 (-0500) Subject: 19699: Add a couple debug statements for etags X-Git-Tag: 2.5.0~37^2~3 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/5b09754d58268e0d98cd144fcc1847c606f5029e 19699: Add a couple debug statements for etags Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/sdk/cwl/arvados_cwl/http.py b/sdk/cwl/arvados_cwl/http.py index 33aa098845..3acc06d48e 100644 --- a/sdk/cwl/arvados_cwl/http.py +++ b/sdk/cwl/arvados_cwl/http.py @@ -119,10 +119,13 @@ def http_to_keep(api, project_uuid, url, utcnow=datetime.datetime.utcnow): if "ETag" in properties and len(properties["ETag"]) > 2: etags[properties["ETag"]] = item + logger.debug("Found ETags %s", etags) + properties = {} headers = {} if etags: headers['If-None-Match'] = ', '.join([etag_quote(k) for k,v in etags.items()]) + logger.debug("Sending GET request with headers %s", headers) req = requests.get(url, stream=True, allow_redirects=True, headers=headers) if req.status_code not in (200, 304):