http client: minor logging fix

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-03-24 18:09:18 -04:00
parent 4b0685852e
commit 561f5f4230
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A
1 changed files with 4 additions and 3 deletions

View File

@ -147,9 +147,10 @@ class HttpClient:
if resp.code == 304:
err = None
if cached is None:
logging.info(
"Request returned 304, however no cached "
"item was found")
if enable_cache:
logging.info(
"Request returned 304, however no cached "
"item was found")
result = b""
else:
logging.debug(f"Request returned from cache: {url}")