misc minor cleanups

This commit is contained in:
Doug MacEachern 2005-09-22 15:32:22 +00:00
parent 1ac57c1137
commit e65b3f3068
1 changed files with 5 additions and 7 deletions

View File

@ -24,8 +24,8 @@ public class EventLogThread implements Runnable {
private boolean shouldDie = false; private boolean shouldDie = false;
private Set notifiers = Collections.synchronizedSet(new HashSet()); private Set notifiers = Collections.synchronizedSet(new HashSet());
private String logName = "Application"; private String logName = EventLog.APPLICATION;
private long interval = 10 * 1000; // Default to 10 seconds private long interval = DEFAULT_INTERVAL;
public static EventLogThread getInstance(String name) { public static EventLogThread getInstance(String name) {
EventLogThread instance; EventLogThread instance;
@ -146,14 +146,12 @@ public class EventLogThread implements Runnable {
} catch (InterruptedException e) { } catch (InterruptedException e) {
} }
} }
log.close();
} catch (Win32Exception e) { } catch (Win32Exception e) {
logger.error("Unable to monitor event log:", e); logger.error("Unable to monitor event log: ", e);
} finally { } finally {
try { log.close(); } try { log.close(); }
catch (Win32Exception e) {}} catch (Win32Exception e) {}
}
} }
public void die() { public void die() {