From 5b09754d58268e0d98cd144fcc1847c606f5029e Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Mon, 7 Nov 2022 17:00:58 -0500 Subject: [PATCH] 19699: Add a couple debug statements for etags Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- sdk/cwl/arvados_cwl/http.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- 2.30.2