From: <do...@hy...> - 2010-02-12 21:17:59
|
Author: dougm Date: 2010-02-12 13:17:45 -0800 (Fri, 12 Feb 2010) New Revision: 14285 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=14285 Modified: trunk/plugins/system/src/org/hyperic/hq/plugin/system/WhoLogTrackPlugin.java Log: [HHQ-3724] use LogTrackPlugin.reportEvent to apply severity filter Modified: trunk/plugins/system/src/org/hyperic/hq/plugin/system/WhoLogTrackPlugin.java =================================================================== --- trunk/plugins/system/src/org/hyperic/hq/plugin/system/WhoLogTrackPlugin.java 2010-02-12 20:39:51 UTC (rev 14284) +++ trunk/plugins/system/src/org/hyperic/hq/plugin/system/WhoLogTrackPlugin.java 2010-02-12 21:17:45 UTC (rev 14285) @@ -26,7 +26,6 @@ package org.hyperic.hq.plugin.system; import org.hyperic.hq.product.LogTrackPlugin; -import org.hyperic.hq.product.TrackEvent; import org.hyperic.sigar.Sigar; import org.hyperic.sigar.SigarException; import org.hyperic.sigar.Who; @@ -73,14 +72,10 @@ msg += " (" + host + ")"; } - TrackEvent event = - new TrackEvent(this.plugin.getName(), - time, - LogTrackPlugin.LOGLEVEL_INFO, - "system", - msg); - - this.plugin.getManager().reportEvent(event); + this.plugin.reportEvent(time, + LogTrackPlugin.LOGLEVEL_INFO, + "system", + msg); } this.lastTime = System.currentTimeMillis(); |