mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
change keyword search ingest logging info to warn when appropriate
This commit is contained in:
parent
c5ab222bdd
commit
123e9b8e0f
@ -222,7 +222,7 @@ public final class KeywordSearchIngestService implements IngestServiceFsContent
|
|||||||
try {
|
try {
|
||||||
solrCore = KeywordSearch.getServer().getCore();
|
solrCore = KeywordSearch.getServer().getCore();
|
||||||
} catch (SolrServerException ex) {
|
} catch (SolrServerException ex) {
|
||||||
logger.log(Level.INFO, "Could not get Solr core", ex);
|
logger.log(Level.WARNING, "Could not get Solr core", ex);
|
||||||
managerProxy.postMessage(IngestMessage.createErrorMessage(++messageID, instance, "Error initializing.", "Keyword indexing and search cannot proceed. Try restarting the application."));
|
managerProxy.postMessage(IngestMessage.createErrorMessage(++messageID, instance, "Error initializing.", "Keyword indexing and search cannot proceed. Try restarting the application."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -357,7 +357,7 @@ public final class KeywordSearchIngestService implements IngestServiceFsContent
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (SolrServerException se) {
|
} catch (SolrServerException se) {
|
||||||
logger.log(Level.INFO, "Error executing Solr query to check number of indexed files: ", se);
|
logger.log(Level.WARNING, "Error executing Solr query to check number of indexed files: ", se);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -454,11 +454,11 @@ public final class KeywordSearchIngestService implements IngestServiceFsContent
|
|||||||
ingester.ingest(fscs);
|
ingester.ingest(fscs);
|
||||||
success = true;
|
success = true;
|
||||||
} catch (TskException tskEx) {
|
} catch (TskException tskEx) {
|
||||||
logger.log(Level.INFO, "Problem extracting string from file: '" + f.getName() + "' (id: " + f.getId() + ").", tskEx);
|
logger.log(Level.WARNING, "Problem extracting string from file: '" + f.getName() + "' (id: " + f.getId() + ").", tskEx);
|
||||||
} catch (IngesterException ingEx) {
|
} catch (IngesterException ingEx) {
|
||||||
logger.log(Level.INFO, "Ingester had a problem with extracted strings from file '" + f.getName() + "' (id: " + f.getId() + ").", ingEx);
|
logger.log(Level.WARNING, "Ingester had a problem with extracted strings from file '" + f.getName() + "' (id: " + f.getId() + ").", ingEx);
|
||||||
} catch (Exception ingEx) {
|
} catch (Exception ingEx) {
|
||||||
logger.log(Level.INFO, "Ingester had a problem with extracted strings from file '" + f.getName() + "' (id: " + f.getId() + ").", ingEx);
|
logger.log(Level.WARNING, "Ingester had a problem with extracted strings from file '" + f.getName() + "' (id: " + f.getId() + ").", ingEx);
|
||||||
}
|
}
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
@ -533,7 +533,7 @@ public final class KeywordSearchIngestService implements IngestServiceFsContent
|
|||||||
private boolean processNonIngestible(FsContent fsContent) {
|
private boolean processNonIngestible(FsContent fsContent) {
|
||||||
if (fsContent.getSize() < MAX_STRING_EXTRACT_SIZE) {
|
if (fsContent.getSize() < MAX_STRING_EXTRACT_SIZE) {
|
||||||
if (!extractAndIngest(fsContent)) {
|
if (!extractAndIngest(fsContent)) {
|
||||||
logger.log(Level.INFO, "Failed to extract strings and ingest, file '" + fsContent.getName() + "' (id: " + fsContent.getId() + ").");
|
logger.log(Level.WARNING, "Failed to extract strings and ingest, file '" + fsContent.getName() + "' (id: " + fsContent.getId() + ").");
|
||||||
ingestStatus.put(fsContent.getId(), IngestStatus.SKIPPED);
|
ingestStatus.put(fsContent.getId(), IngestStatus.SKIPPED);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
@ -603,7 +603,7 @@ public final class KeywordSearchIngestService implements IngestServiceFsContent
|
|||||||
try {
|
try {
|
||||||
queryResult = del.performQuery();
|
queryResult = del.performQuery();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.log(Level.INFO, "Error performing query: " + keywordQuery.getQuery(), e);
|
logger.log(Level.WARNING, "Error performing query: " + keywordQuery.getQuery(), e);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user