mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
Merge pull request #5075 from dannysmyda/Demote-Solr-Log-Message
Reduced the severity of the Solr message
This commit is contained in:
commit
e5619ce499
@ -64,11 +64,13 @@ import org.apache.solr.common.util.NamedList;
|
|||||||
import org.openide.modules.InstalledFileLocator;
|
import org.openide.modules.InstalledFileLocator;
|
||||||
import org.openide.modules.Places;
|
import org.openide.modules.Places;
|
||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
|
import org.openide.windows.WindowManager;
|
||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
import org.sleuthkit.autopsy.casemodule.Case;
|
||||||
import org.sleuthkit.autopsy.casemodule.Case.CaseType;
|
import org.sleuthkit.autopsy.casemodule.Case.CaseType;
|
||||||
import org.sleuthkit.autopsy.casemodule.CaseMetadata;
|
import org.sleuthkit.autopsy.casemodule.CaseMetadata;
|
||||||
import org.sleuthkit.autopsy.core.UserPreferences;
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
|
import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
|
||||||
import org.sleuthkit.autopsy.coreutils.ModuleSettings;
|
import org.sleuthkit.autopsy.coreutils.ModuleSettings;
|
||||||
import org.sleuthkit.autopsy.coreutils.PlatformUtil;
|
import org.sleuthkit.autopsy.coreutils.PlatformUtil;
|
||||||
import org.sleuthkit.autopsy.healthmonitor.HealthMonitor;
|
import org.sleuthkit.autopsy.healthmonitor.HealthMonitor;
|
||||||
@ -492,7 +494,14 @@ public class Server {
|
|||||||
// If we get here the Solr server has not responded to connection
|
// If we get here the Solr server has not responded to connection
|
||||||
// attempts in a timely fashion.
|
// attempts in a timely fashion.
|
||||||
logger.log(Level.WARNING, "Local Solr server failed to respond to status requests.");
|
logger.log(Level.WARNING, "Local Solr server failed to respond to status requests.");
|
||||||
throw new KeywordSearchModuleException(Bundle.Server_status_failed_msg());
|
WindowManager.getDefault().invokeWhenUIReady(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
MessageNotifyUtil.Notify.error(
|
||||||
|
NbBundle.getMessage(this.getClass(), "Installer.errorInitKsmMsg"),
|
||||||
|
Bundle.Server_status_failed_msg());
|
||||||
|
}
|
||||||
|
});
|
||||||
} catch (SecurityException ex) {
|
} catch (SecurityException ex) {
|
||||||
logger.log(Level.SEVERE, "Could not start Solr process!", ex); //NON-NLS
|
logger.log(Level.SEVERE, "Could not start Solr process!", ex); //NON-NLS
|
||||||
throw new KeywordSearchModuleException(
|
throw new KeywordSearchModuleException(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user