From d1f346b17bb05d2a84389a802234771855f64f1a Mon Sep 17 00:00:00 2001 From: Stuart Mumford Date: Thu, 4 Apr 2024 16:48:46 +0100 Subject: [PATCH] Only log get_ftp_size errors at info (#148) --- parfive/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parfive/utils.py b/parfive/utils.py index 00bfc3f..ea36ff6 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