http client: minor logging fix
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
4b0685852e
commit
561f5f4230
|
@ -147,9 +147,10 @@ class HttpClient:
|
||||||
if resp.code == 304:
|
if resp.code == 304:
|
||||||
err = None
|
err = None
|
||||||
if cached is None:
|
if cached is None:
|
||||||
logging.info(
|
if enable_cache:
|
||||||
"Request returned 304, however no cached "
|
logging.info(
|
||||||
"item was found")
|
"Request returned 304, however no cached "
|
||||||
|
"item was found")
|
||||||
result = b""
|
result = b""
|
||||||
else:
|
else:
|
||||||
logging.debug(f"Request returned from cache: {url}")
|
logging.debug(f"Request returned from cache: {url}")
|
||||||
|
|
Loading…
Reference in New Issue