From 291bc4726b3ec9e78ed8dae9955deb93944c6928 Mon Sep 17 00:00:00 2001 From: Jay Patel Date: Thu, 12 Oct 2023 17:26:02 -0700 Subject: [PATCH] SNOW-928802 Fix logger error where the message/stack trace is not printed --- .../net/snowflake/client/jdbc/SnowflakeFileTransferAgent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/snowflake/client/jdbc/SnowflakeFileTransferAgent.java b/src/main/java/net/snowflake/client/jdbc/SnowflakeFileTransferAgent.java index 543e8a7f5..d6c06b910 100644 --- a/src/main/java/net/snowflake/client/jdbc/SnowflakeFileTransferAgent.java +++ b/src/main/java/net/snowflake/client/jdbc/SnowflakeFileTransferAgent.java @@ -2088,7 +2088,7 @@ public static void uploadWithoutConnection(SnowflakeFileTransferConfig config) t break; } } catch (Exception ex) { - logger.error("Exception encountered during file upload: ", ex.getMessage()); + logger.error("Exception encountered during file upload in uploadWithoutConnection", ex); throw ex; } finally { if (fileBackedOutputStream != null) {