mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-16 17:57:43 +00:00
Debug logs
This commit is contained in:
parent
40864ae8b7
commit
d1aa9c696e
@ -226,6 +226,7 @@ public class ServicesMonitor {
|
||||
* @param service Name of the service.
|
||||
*/
|
||||
private void checkServiceStatus(String service) {
|
||||
logger.log(Level.INFO, "ELDEBUG Checking status of {0}", service); //NON-NLS
|
||||
if (service.equals(Service.REMOTE_CASE_DATABASE.toString())) {
|
||||
checkDatabaseConnectionStatus();
|
||||
} else if (service.equals(Service.REMOTE_KEYWORD_SEARCH.toString())) {
|
||||
@ -233,6 +234,7 @@ public class ServicesMonitor {
|
||||
} else if (service.equals(Service.MESSAGING.toString())) {
|
||||
checkMessagingServerConnectionStatus();
|
||||
}
|
||||
logger.log(Level.INFO, "ELDEBUG DONE checking status of {0}", service); //NON-NLS
|
||||
}
|
||||
|
||||
/**
|
||||
@ -390,6 +392,7 @@ public class ServicesMonitor {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
logger.log(Level.INFO, "ELDEBUG CrashDetectionTask.run()"); //NON-NLS
|
||||
checkAllServices();
|
||||
} catch (Exception ex) {
|
||||
logger.log(Level.SEVERE, "Unexpected exception in CrashDetectionTask", ex); //NON-NLS
|
||||
|
@ -240,6 +240,7 @@ public final class AutoIngestDashboard extends JPanel implements Observer {
|
||||
|
||||
@Override
|
||||
protected Void doInBackground() throws Exception {
|
||||
SYS_LOGGER.log(Level.INFO, "ELDEBUG AID.setServicesStatusMessage.doInBackground()"); //NON-NLS
|
||||
caseDatabaseServerStatus = getServiceStatus(ServicesMonitor.Service.REMOTE_CASE_DATABASE);
|
||||
keywordSearchServiceStatus = getServiceStatus(ServicesMonitor.Service.REMOTE_KEYWORD_SEARCH);
|
||||
messagingStatus = getServiceStatus(ServicesMonitor.Service.MESSAGING);
|
||||
@ -617,6 +618,7 @@ public final class AutoIngestDashboard extends JPanel implements Observer {
|
||||
* Subscribe to services monitor events.
|
||||
*/
|
||||
ServicesMonitor.getInstance().addSubscriber((PropertyChangeEvent evt) -> {
|
||||
SYS_LOGGER.log(Level.INFO, "ELDEBUG Callback to AID from ServicesMonitor.publishLocally()"); //NON-NLS
|
||||
setServicesStatusMessage();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user