SOLR-1120

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@781272 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2009-06-03 06:06:22 +00:00
parent d119b63a74
commit 40ef4b2599
1 changed files with 4 additions and 7 deletions

View File

@ -42,11 +42,11 @@ import java.util.Stack;
* @version $Id$
* @since solr 1.3
*/
public class DebugLogger {
class DebugLogger {
private Stack<DebugInfo> debugStack;
NamedList output;
SolrWriter writer;
private final SolrWriter writer;
private static final String LINE = "---------------------------------------------";
@ -55,7 +55,8 @@ public class DebugLogger {
boolean enabled = true;
public DebugLogger() {
public DebugLogger(SolrWriter solrWriter) {
writer = solrWriter;
output = new NamedList();
debugStack = new Stack<DebugInfo>() {
@ -70,10 +71,6 @@ public class DebugLogger {
output = debugStack.peek().lst;
}
public DebugLogger(SolrWriter solrWriter) {
writer = solrWriter;
}
private DebugInfo peekStack() {
return debugStack.isEmpty() ? null : debugStack.peek();
}