mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
disable solr log writing in release build
This commit is contained in:
parent
f31a5eea46
commit
aa5099fcd3
@ -211,14 +211,16 @@ class Server {
|
|||||||
public void run() {
|
public void run() {
|
||||||
InputStreamReader isr = new InputStreamReader(stream);
|
InputStreamReader isr = new InputStreamReader(stream);
|
||||||
BufferedReader br = new BufferedReader(isr);
|
BufferedReader br = new BufferedReader(isr);
|
||||||
|
final Version.Type builtType = Version.getBuildType();
|
||||||
try {
|
try {
|
||||||
OutputStreamWriter osw = new OutputStreamWriter(out, PlatformUtil.getDefaultPlatformCharset());
|
OutputStreamWriter osw = new OutputStreamWriter(out, PlatformUtil.getDefaultPlatformCharset());
|
||||||
BufferedWriter bw = new BufferedWriter(osw);
|
BufferedWriter bw = new BufferedWriter(osw);
|
||||||
String line = null;
|
String line = null;
|
||||||
while (doRun && (line = br.readLine()) != null) {
|
while (doRun && (line = br.readLine()) != null) {
|
||||||
|
if (builtType == Version.Type.DEVELOPMENT) {
|
||||||
bw.write(line);
|
bw.write(line);
|
||||||
bw.newLine();
|
bw.newLine();
|
||||||
if (Version.getBuildType() == Version.Type.DEVELOPMENT) {
|
//if (builtType == Version.Type.DEVELOPMENT) {
|
||||||
//flush buffers if dev version for debugging
|
//flush buffers if dev version for debugging
|
||||||
bw.flush();
|
bw.flush();
|
||||||
}
|
}
|
||||||
@ -399,8 +401,8 @@ class Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute query that gets only number of all Solr file chunks (not logical files) indexed without
|
* Execute query that gets only number of all Solr file chunks (not logical
|
||||||
* actually returning the content.
|
* files) indexed without actually returning the content.
|
||||||
*
|
*
|
||||||
* @return int representing number of indexed chunks
|
* @return int representing number of indexed chunks
|
||||||
* @throws SolrServerException
|
* @throws SolrServerException
|
||||||
@ -677,8 +679,8 @@ class Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute query that gets only number of all chunks (not logical files, or all documents)
|
* Execute query that gets only number of all chunks (not logical files,
|
||||||
* indexed without actually returning the content
|
* or all documents) indexed without actually returning the content
|
||||||
*
|
*
|
||||||
* @return int representing number of indexed chunks
|
* @return int representing number of indexed chunks
|
||||||
* @throws SolrServerException
|
* @throws SolrServerException
|
||||||
|
Loading…
x
Reference in New Issue
Block a user