[강운덕] [WEB-49] log레벨 조정

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@3340 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2014-02-14 06:23:52 +00:00
parent f6cd8a8518
commit 07fd73d956
3 changed files with 8 additions and 12 deletions
@@ -54,7 +54,6 @@ public class Node implements JsonSerializable {
if (hostList != null) {
// 이 put은 정확하지 않음.
// this.hostList.addHostList(hostList);
logger.debug("createApplication");
this.hostList.put(hostList);
}
@@ -112,7 +111,7 @@ public class Node implements JsonSerializable {
if (node == null) {
throw new NullPointerException("node must not be null");
}
logger.debug("merge node this={}, node={}", this.application, node.application);
logger.trace("merge node this={}, node={}", this.application, node.application);
// 리얼 application을 실제빌드할때 copy하여 만들기 때문에. add할때 데이터를 hostList를 add해도 된다.
this.hostList.addHostList(node.hostList);
@@ -33,10 +33,8 @@ public class MapStatisticsCalleeMapper implements RowMapper<List<LinkStatistics>
final KeyValue[] keyList = result.raw();
// key is destApplicationName.
final List<LinkStatistics> stat = new ArrayList<LinkStatistics>(keyList.length + 10);
final List<LinkStatistics> linkStatisticsList = new ArrayList<LinkStatistics>(keyList.length + 10);
// key is destApplicationName
// Map<String, Set<String>> callerAppHostMap = new HashMap<String, Set<String>>();
for (KeyValue kv : keyList) {
@@ -54,13 +52,13 @@ public class MapStatisticsCalleeMapper implements RowMapper<List<LinkStatistics>
boolean isError = histogramSlot == (short) -1;
if (logger.isDebugEnabled()) {
logger.debug(" Fetched Callee. {} -> {} ({})", caller, callee, requestCount);
logger.debug(" Fetched Callee. {} -> {} ({}) calleeHost", caller, callee, requestCount, calleeHost);
}
LinkStatistics statistics = new LinkStatistics(caller, callee);
statistics.addSample(calleeHost, callee.getServiceTypeCode(), (isError) ? (short) -1 : histogramSlot, requestCount);
stat.add(statistics);
linkStatisticsList.add(statistics);
}
// statistics에 dest host정보 삽입.
@@ -68,7 +66,7 @@ public class MapStatisticsCalleeMapper implements RowMapper<List<LinkStatistics>
// entry.getValue().addToHosts(callerAppHostMap.get(entry.getKey()));
// }
return stat;
return linkStatisticsList;
}
private Application readCalleeApplication(byte[] qualifier) {
@@ -31,8 +31,7 @@ public class MapStatisticsCallerMapper implements RowMapper<List<LinkStatistics>
}
final KeyValue[] keyList = result.raw();
final List<LinkStatistics> stat = new ArrayList<LinkStatistics>(keyList.length + 10);
final List<LinkStatistics> linkStatisticsList = new ArrayList<LinkStatistics>(keyList.length + 10);
for (KeyValue kv : keyList) {
@@ -56,10 +55,10 @@ public class MapStatisticsCallerMapper implements RowMapper<List<LinkStatistics>
LinkStatistics statistics = new LinkStatistics(callerApplication, calleeApplication);
statistics.addSample(calleeHost, calleeApplication.getServiceTypeCode(), (isError) ? (short) -1 : histogramSlot, requestCount);
stat.add(statistics);
linkStatisticsList.add(statistics);
}
return stat;
return linkStatisticsList;
}
private Application readCallerApplication(byte[] qualifier) {