From 970759d20db1bf2cf94004abccc90fa3c9499bda 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 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