Commit fc442dfa by WeiCong

去掉redis连接工具无用日志

parent e2c09651
...@@ -2,7 +2,6 @@ package org.sss.presentation.noui.util; ...@@ -2,7 +2,6 @@ package org.sss.presentation.noui.util;
import log.Log; import log.Log;
import log.LogFactory; import log.LogFactory;
import org.apache.commons.lang.StringUtils;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import org.sss.presentation.noui.redis.RedisBalanceProperties; import org.sss.presentation.noui.redis.RedisBalanceProperties;
...@@ -14,7 +13,6 @@ import java.util.Map; ...@@ -14,7 +13,6 @@ import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
/** /**
* Redis连接池工具类 * Redis连接池工具类
...@@ -113,7 +111,7 @@ public class RedisUtil { ...@@ -113,7 +111,7 @@ public class RedisUtil {
//使用setex实现,减一次连接 //使用setex实现,减一次连接
masterNode.opsForValue().set(key,value,sessionTimeOut, TimeUnit.SECONDS); masterNode.opsForValue().set(key,value,sessionTimeOut, TimeUnit.SECONDS);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); log.error(e.getMessage());
checkRedisNodeAvailable(); checkRedisNodeAvailable();
} }
} }
...@@ -122,7 +120,7 @@ public class RedisUtil { ...@@ -122,7 +120,7 @@ public class RedisUtil {
try { try {
return masterNode.opsForValue().get(key); return masterNode.opsForValue().get(key);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); log.error(e.getMessage());
checkRedisNodeAvailable(); checkRedisNodeAvailable();
} }
return null; return null;
...@@ -132,7 +130,7 @@ public class RedisUtil { ...@@ -132,7 +130,7 @@ public class RedisUtil {
try { try {
return masterNode.delete(key); return masterNode.delete(key);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); log.error(e.getMessage());
checkRedisNodeAvailable(); checkRedisNodeAvailable();
} }
return false; return false;
...@@ -142,7 +140,7 @@ public class RedisUtil { ...@@ -142,7 +140,7 @@ public class RedisUtil {
try { try {
return masterNode.keys(key + "*"); return masterNode.keys(key + "*");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); log.error(e.getMessage());
checkRedisNodeAvailable(); checkRedisNodeAvailable();
} }
return new HashSet(); return new HashSet();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment