From 1e8583619d8450282ee1a2da0a9711d4354cc91e Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Tue, 7 Dec 2010 15:57:00 -0500 Subject: [PATCH] changed logging level to TRACE for monitoring session pool behavior. It is chatty so TRACE is better then debug --- .../file/remote/session/CachingSessionFactory.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java index 6728c4328f..3d060c1eb3 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java @@ -65,13 +65,13 @@ public class CachingSessionFactory implements SessionFactory, DisposableBean { if (session == null || (session != null && !session.isOpen())) { if (session != null && !session.isOpen()){ - logger.debug("Located session in the pool but it is stale, will create new one."); + logger.trace("Located session in the pool but it is stale, will create new one."); } session = sessionFactory.getSession(); - logger.debug("Created new session"); + logger.trace("Created new session"); } else { - logger.debug("Using session from the pool"); + logger.trace("Using session from the pool"); } return new CachedSession(session); @@ -108,11 +108,11 @@ public class CachingSessionFactory implements SessionFactory, DisposableBean { public void close() { if (queue.size() < maxPoolSize) { - logger.debug("Releasing target session back to the pool"); + logger.trace("Releasing target session back to the pool"); queue.add(targetSession); } else { - logger.debug("Disconnecting target session"); + logger.trace("Disconnecting target session"); targetSession.close(); } }