Skip to content

Commit 29c06ea

Browse files
authored
improve HTTP debug logging (#1547)
1 parent c2ab54d commit 29c06ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsspec/implementations/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ async def _info(self, url, **kwargs):
433433
if policy == "get":
434434
# If get failed, then raise a FileNotFoundError
435435
raise FileNotFoundError(url) from exc
436-
logger.debug(str(exc))
436+
logger.debug("", exc_info=exc)
437437

438438
return {"name": url, "size": None, **info, "type": "file"}
439439

0 commit comments

Comments
 (0)