SOLR-3157: improve logging, add path/params to updates

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1294916 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2012-02-29 00:38:16 +00:00
parent 2b055c2195
commit b2d288d5df
1 changed files with 4 additions and 4 deletions

View File

@ -183,9 +183,9 @@ class LogUpdateProcessor extends UpdateRequestProcessor {
StringBuilder sb = new StringBuilder();
for (int i=0; i<toLog.size(); i++) {
String name = toLog.getName(i);
Object val = toLog.getVal(i);
for (int i=0; i<stdLog.size(); i++) {
String name = stdLog.getName(i);
Object val = stdLog.getVal(i);
if (name != null) {
sb.append(name).append('=');
}
@ -203,7 +203,7 @@ class LogUpdateProcessor extends UpdateRequestProcessor {
}
long elapsed = rsp.getEndTime() - req.getStartTime();
sb.append(" 0 ").append(elapsed);
sb.append(toLog).append(" 0 ").append(elapsed);
log.info(sb.toString());
}
}