This commit is contained in:
eugene.livis 2022-08-03 10:53:33 -04:00
parent 25f84c7464
commit f20bb479d3

View File

@ -260,10 +260,9 @@ public class CommandLineIngestManager extends CommandLineManager {
// run ingest // run ingest
String ingestProfile = inputs.get(CommandLineCommand.InputType.INGEST_PROFILE_NAME.name()); String ingestProfile = inputs.get(CommandLineCommand.InputType.INGEST_PROFILE_NAME.name());
analyze(dataSource, ingestProfile); analyze(dataSource, ingestProfile);
} catch (InterruptedException | CaseActionException ex) { } catch (InterruptedException | CaseActionException | AnalysisStartupException ex) {
String dataSourcePath = command.getInputs().get(CommandLineCommand.InputType.DATA_SOURCE_PATH.name()); LOGGER.log(Level.SEVERE, "Error running ingest on data source " + dataSource.getPath(), ex);
LOGGER.log(Level.SEVERE, "Error running ingest on data source " + dataSourcePath, ex); System.out.println("Error running ingest on data source " + dataSource.getPath());
System.out.println("Error running ingest on data source " + dataSourcePath);
// Do not process any other commands // Do not process any other commands
errorCode = CL_RUN_FAILURE; errorCode = CL_RUN_FAILURE;
return; return;
@ -520,7 +519,7 @@ public class CommandLineIngestManager extends CommandLineManager {
// unable to find the user specified profile // unable to find the user specified profile
LOGGER.log(Level.SEVERE, "Unable to find ingest profile: {0}. Ingest cancelled!", ingestProfileName); LOGGER.log(Level.SEVERE, "Unable to find ingest profile: {0}. Ingest cancelled!", ingestProfileName);
System.out.println("Unable to find ingest profile: " + ingestProfileName + ". Ingest cancelled!"); System.out.println("Unable to find ingest profile: " + ingestProfileName + ". Ingest cancelled!");
return; throw new AnalysisStartupException("Unable to find ingest profile: " + ingestProfileName + ". Ingest cancelled!");
} }
// get FileSet filter associated with this profile // get FileSet filter associated with this profile
@ -529,7 +528,7 @@ public class CommandLineIngestManager extends CommandLineManager {
// unable to find the user specified profile // unable to find the user specified profile
LOGGER.log(Level.SEVERE, "Unable to find file filter {0} for ingest profile: {1}. Ingest cancelled!", new Object[]{selectedProfile.getFileIngestFilter(), ingestProfileName}); LOGGER.log(Level.SEVERE, "Unable to find file filter {0} for ingest profile: {1}. Ingest cancelled!", new Object[]{selectedProfile.getFileIngestFilter(), ingestProfileName});
System.out.println("Unable to find file filter " + selectedProfile.getFileIngestFilter() + " for ingest profile: " + ingestProfileName + ". Ingest cancelled!"); System.out.println("Unable to find file filter " + selectedProfile.getFileIngestFilter() + " for ingest profile: " + ingestProfileName + ". Ingest cancelled!");
return; throw new AnalysisStartupException("Unable to find file filter " + selectedProfile.getFileIngestFilter() + " for ingest profile: " + ingestProfileName + ". Ingest cancelled!");
} }
} }