From e65b3f30686f5d17ad31ca522bf4bfc16b2bff6f Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 22 Sep 2005 15:32:22 +0000 Subject: [PATCH] misc minor cleanups --- .../src/net/hyperic/sigar/win32/EventLogThread.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/win32/EventLogThread.java b/bindings/java/src/net/hyperic/sigar/win32/EventLogThread.java index 55fe6abb..6ff51cbe 100644 --- a/bindings/java/src/net/hyperic/sigar/win32/EventLogThread.java +++ b/bindings/java/src/net/hyperic/sigar/win32/EventLogThread.java @@ -24,8 +24,8 @@ public class EventLogThread implements Runnable { private boolean shouldDie = false; private Set notifiers = Collections.synchronizedSet(new HashSet()); - private String logName = "Application"; - private long interval = 10 * 1000; // Default to 10 seconds + private String logName = EventLog.APPLICATION; + private long interval = DEFAULT_INTERVAL; public static EventLogThread getInstance(String name) { EventLogThread instance; @@ -146,14 +146,12 @@ public class EventLogThread implements Runnable { } catch (InterruptedException e) { } } - - log.close(); - } catch (Win32Exception e) { - logger.error("Unable to monitor event log:", e); + logger.error("Unable to monitor event log: ", e); } finally { try { log.close(); } - catch (Win32Exception e) {}} + catch (Win32Exception e) {} + } } public void die() {