Commit ea67a295 by Future

添加调试日志

parent 1ee1123f
......@@ -73,7 +73,9 @@ public class UserStateCacheManager extends UserStateListener {
public List<ClientChannelInfo> findOnlineInfosByClientId(Long clientId) {
// 获取所有 CLIENTS的 <platform>:<ip>
Long time1 = System.currentTimeMillis();
Set<String> platformAndIps = redisUtils.getForSetMembers(getUserStateCacheKey(clientId));
log.info("redis中获取用户数据耗时 {} 内容 {}", System.currentTimeMillis() - time1, JSON.toJSONString(platformAndIps));
ArrayList<ClientChannelInfo> clientChannelInfos = new ArrayList<>();
for(String platformAndIp : platformAndIps) {
......
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