disable solr log writing in release build

This commit is contained in:
adam-m 2012-09-13 13:25:40 -04:00
parent f31a5eea46
commit aa5099fcd3

View File

@ -211,14 +211,16 @@ class Server {
public void run() {
InputStreamReader isr = new InputStreamReader(stream);
BufferedReader br = new BufferedReader(isr);
final Version.Type builtType = Version.getBuildType();
try {
OutputStreamWriter osw = new OutputStreamWriter(out, PlatformUtil.getDefaultPlatformCharset());
BufferedWriter bw = new BufferedWriter(osw);
String line = null;
while (doRun && (line = br.readLine()) != null) {
bw.write(line);
bw.newLine();
if (Version.getBuildType() == Version.Type.DEVELOPMENT) {
if (builtType == Version.Type.DEVELOPMENT) {
bw.write(line);
bw.newLine();
//if (builtType == Version.Type.DEVELOPMENT) {
//flush buffers if dev version for debugging
bw.flush();
}
@ -398,9 +400,9 @@ class Server {
return currentCore.queryNumIndexedFiles();
}
/**
* Execute query that gets only number of all Solr file chunks (not logical files) indexed without
* actually returning the content.
/**
* Execute query that gets only number of all Solr file chunks (not logical
* files) indexed without actually returning the content.
*
* @return int representing number of indexed chunks
* @throws SolrServerException
@ -676,9 +678,9 @@ class Server {
return queryNumIndexedDocuments() - queryNumIndexedChunks();
}
/**
* Execute query that gets only number of all chunks (not logical files, or all documents)
* indexed without actually returning the content
/**
* Execute query that gets only number of all chunks (not logical files,
* or all documents) indexed without actually returning the content
*
* @return int representing number of indexed chunks
* @throws SolrServerException