Merge pull request #1990 from eugene7646/minor_logs

Minor logging change
This commit is contained in:
Richard Cordovano 2016-02-26 12:23:27 -05:00
commit b18b3b8af6
3 changed files with 4 additions and 4 deletions

View File

@ -469,7 +469,7 @@ final class CollaborationMonitor {
try { try {
eventPublisher.publishRemotely(new CollaborationEvent(hostName, localTasksManager.getCurrentTasks())); eventPublisher.publishRemotely(new CollaborationEvent(hostName, localTasksManager.getCurrentTasks()));
} catch (Exception ex) { } catch (Exception ex) {
logger.log(Level.SEVERE, "Unexpected exception in HeartbeatTask!", ex); //NON-NLS logger.log(Level.SEVERE, "Unexpected exception in HeartbeatTask", ex); //NON-NLS
} }
} }
} }
@ -489,7 +489,7 @@ final class CollaborationMonitor {
try { try {
remoteTasksManager.finishStaleTasks(); remoteTasksManager.finishStaleTasks();
} catch (Exception ex) { } catch (Exception ex) {
logger.log(Level.SEVERE, "Unexpected exception in StaleTaskDetectionTask!", ex); //NON-NLS logger.log(Level.SEVERE, "Unexpected exception in StaleTaskDetectionTask", ex); //NON-NLS
} }
} }
} }

View File

@ -392,7 +392,7 @@ public class ServicesMonitor {
try { try {
checkAllServices(); checkAllServices();
} catch (Exception ex) { } catch (Exception ex) {
logger.log(Level.SEVERE, "Unexpected exception in CrashDetectionTask!", ex); //NON-NLS logger.log(Level.SEVERE, "Unexpected exception in CrashDetectionTask", ex); //NON-NLS
} }
} }
} }

View File

@ -193,7 +193,7 @@ public final class AutopsyEventPublisher {
logger.log(Level.SEVERE, String.format("Failed to reopen channel %s to publish %s event (tryCount = %s)", currentChannelName, event.getPropertyName(), tryCount), ex); //NON-NLS logger.log(Level.SEVERE, String.format("Failed to reopen channel %s to publish %s event (tryCount = %s)", currentChannelName, event.getPropertyName(), tryCount), ex); //NON-NLS
++tryCount; ++tryCount;
} catch (Exception ex) { } catch (Exception ex) {
logger.log(Level.SEVERE, String.format("Unexpected exception! Failed to to publish %s event on channel %s (tryCount = %s)", event.getPropertyName(), currentChannelName, tryCount), ex); //NON-NLS logger.log(Level.SEVERE, String.format("Unexpected exception. Failed to to publish %s event on channel %s (tryCount = %s)", event.getPropertyName(), currentChannelName, tryCount), ex); //NON-NLS
++tryCount; ++tryCount;
} }
} }