From 7d8c27202c22713a19b001996decb8217ff5cf99 Mon Sep 17 00:00:00 2001 From: GertDE <45329290+GertDE@users.noreply.github.com> Date: Mon, 24 Feb 2025 15:25:00 +0100 Subject: [PATCH] update log level to debug This prevents unnecessary log spam in production environments. --- src/main/java/com/zaxxer/hikari/pool/ProxyConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zaxxer/hikari/pool/ProxyConnection.java b/src/main/java/com/zaxxer/hikari/pool/ProxyConnection.java index 02526d0c..7c2bfc2b 100644 --- a/src/main/java/com/zaxxer/hikari/pool/ProxyConnection.java +++ b/src/main/java/com/zaxxer/hikari/pool/ProxyConnection.java @@ -175,7 +175,7 @@ public abstract class ProxyConnection implements Connection if (evict) { var exception = (nse != null) ? nse : sqle; - LOGGER.warn("{} - Connection {} marked as broken because of SQLSTATE({}), ErrorCode({})", + LOGGER.debug("{} - Connection {} marked as broken because of SQLSTATE({}), ErrorCode({})", poolEntry.getPoolName(), delegate, exception.getSQLState(), exception.getErrorCode(), exception); leakTask.cancel(); poolEntry.evict("(connection is broken)"); @@ -219,7 +219,7 @@ public abstract class ProxyConnection implements Connection // automatic resource cleanup } catch (SQLException e) { - LOGGER.warn("{} - Connection {} marked as broken because of an exception closing open statements during Connection.close()", + LOGGER.debug("{} - Connection {} marked as broken because of an exception closing open statements during Connection.close()", poolEntry.getPoolName(), delegate); leakTask.cancel(); poolEntry.evict("(exception closing Statements during Connection.close())");