mirror of https://github.com/apache/lucene.git
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:
parent
d119b63a74
commit
40ef4b2599
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue