From d3745fd082f8b847d5d8ca57fffe989b64c36694 Mon Sep 17 00:00:00 2001 From: Stuart Mumford Date: Thu, 4 Apr 2024 15:07:56 +0100 Subject: [PATCH] Only log get_ftp_size errors at info --- parfive/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parfive/utils.py b/parfive/utils.py index 6d6e95c..ea85e60 100644 --- a/parfive/utils.py +++ b/parfive/utils.py @@ -93,7 +93,7 @@ async def get_ftp_size(client, filepath): size = await client.stat(filepath) size = size.get("size", None) except Exception: - parfive.log.exception("Failed to get size of FTP file") + parfive.log.info("Failed to get size of FTP file", exc_info=True) size = None return int(size) if size else size