From 29c06ea7e4e60f656a33f9bc2472c81335e850e3 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Fri, 15 Mar 2024 14:37:38 -0400 Subject: [PATCH] improve HTTP debug logging (#1547) --- fsspec/implementations/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsspec/implementations/http.py b/fsspec/implementations/http.py index aa36332b6..2ffb7ed41 100644 --- a/fsspec/implementations/http.py +++ b/fsspec/implementations/http.py @@ -433,7 +433,7 @@ async def _info(self, url, **kwargs): if policy == "get": # If get failed, then raise a FileNotFoundError raise FileNotFoundError(url) from exc - logger.debug(str(exc)) + logger.debug("", exc_info=exc) return {"name": url, "size": None, **info, "type": "file"}