Remove case auto ingest log warning if AFE is not enabled

This commit is contained in:
Richard Cordovano 2017-09-25 16:36:44 -04:00
parent 7769e10071
commit face3ca367
2 changed files with 1 additions and 17 deletions

View File

@ -349,19 +349,6 @@ final class AutoIngestJobLogger {
log(MessageCategory.WARNING, "Analysis of data source cancelled");
}
/**
* Logs that automated file export is not enabled.
*
* @throws AutoIngestJobLoggerException if there is an error writing the log
* message.
* @throws InterruptedException if interrupted while blocked waiting
* to acquire an exclusive lock on the
* log file.
*/
void logFileExportDisabled() throws AutoIngestJobLoggerException, InterruptedException {
log(MessageCategory.WARNING, "Automated file export is not enabled");
}
/**
* Logs completion of file export.
*

View File

@ -2531,10 +2531,7 @@ public final class AutoIngestManager extends Observable implements PropertyChang
if (fileExporter.isEnabled()) {
fileExporter.process(manifest.getDeviceId(), dataSource.getContent(), currentJob::isCanceled);
jobLogger.logFileExportCompleted();
} else {
SYS_LOGGER.log(Level.WARNING, "Exporting files not enabled for {0}", manifestPath);
jobLogger.logFileExportDisabled();
}
}
} catch (FileExportException ex) {
SYS_LOGGER.log(Level.SEVERE, String.format("Error doing file export for %s", manifestPath), ex);
currentJob.setErrorsOccurred(true);