Skip to content

Commit db3ad71

Browse files
committed
fix wrong log
1 parent 55da6cc commit db3ad71

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cachecloud-open-web/src/main/java/com/sohu/cache/redis/impl/RedisCenterImpl.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public Boolean execute() {
291291
}
292292
});
293293
if (!isOk) {
294-
logger.error("slowlog submitFuture failed,appId:{},collectTime:{},host:{},ip:{}", appId, collectTime, host, port);
294+
logger.error("slowlog submitFuture failed,appId:{},collectTime:{},host:{},port:{}", appId, collectTime, host, port);
295295
}
296296
return instanceSlowLogList;
297297
}
@@ -342,7 +342,7 @@ public Map<RedisConstant, Map<String, Object>> collectRedisInfo(long appId, long
342342
}
343343
Map<RedisConstant, Map<String, Object>> infoMap = this.getInfoStats(appId, host, port);
344344
if (infoMap == null || infoMap.isEmpty()) {
345-
logger.error("appId:{},collectTime:{},host:{},ip:{} cost={} ms redis infoMap is null",
345+
logger.error("appId:{},collectTime:{},host:{},port:{} cost={} ms redis infoMap is null",
346346
new Object[]{appId, collectTime, host, port, (System.currentTimeMillis() - start)});
347347
return infoMap;
348348
}
@@ -351,7 +351,7 @@ public Map<RedisConstant, Map<String, Object>> collectRedisInfo(long appId, long
351351

352352
boolean isOk = asyncService.submitFuture(new RedisKeyCallable(appId, collectTime, host, port, infoMap, clusterInfoMap));
353353
if (!isOk) {
354-
logger.error("submitFuture failed,appId:{},collectTime:{},host:{},ip:{} cost={} ms",
354+
logger.error("submitFuture failed,appId:{},collectTime:{},host:{},port:{} cost={} ms",
355355
new Object[]{appId, collectTime, host, port, (System.currentTimeMillis() - start)});
356356
}
357357
return infoMap;
@@ -392,7 +392,7 @@ public boolean execute() {
392392
logger.error(e.getMessage() + " {}:{}", host, port, e);
393393
}
394394
if (infoMap == null || infoMap.isEmpty()) {
395-
logger.error("host:{},ip:{} redis infoMap is null", host, port);
395+
logger.error("host:{},port:{} redis infoMap is null", host, port);
396396
return infoMap;
397397
}
398398
return infoMap;
@@ -692,7 +692,7 @@ private Map<RedisConstant, Map<String, Object>> processRedisStats(String statRes
692692
}
693693
Map<String, Object> sectionMap = new LinkedHashMap<String, Object>();
694694
while (i < length && data[i].contains(":")) {
695-
String[] pair = data[i].split(":");
695+
String[] pair = StringUtils.splitByWholeSeparator(data[i], ":");
696696
sectionMap.put(pair[0], pair[1]);
697697
i++;
698698
}

0 commit comments

Comments
 (0)