Debug logs

This commit is contained in:
Eugene Livis 2017-06-07 17:28:22 -04:00
parent 40864ae8b7
commit d1aa9c696e
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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();
});