From: <tr...@hy...> - 2010-03-26 23:17:16
|
Author: trader Date: 2010-03-26 16:17:07 -0700 (Fri, 26 Mar 2010) New Revision: 14428 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=14428 Modified: trunk/src/org/hyperic/hq/measurement/server/session/ReportProcessorEJBImpl.java Log: HHQ-3612: better error logging from ReportProcessor. Just fix the error message. Leftover: there is a FIXME comment regarding a minor re-factoring that would make the code less convoluted. Modified: trunk/src/org/hyperic/hq/measurement/server/session/ReportProcessorEJBImpl.java =================================================================== --- trunk/src/org/hyperic/hq/measurement/server/session/ReportProcessorEJBImpl.java 2010-03-26 21:54:39 UTC (rev 14427) +++ trunk/src/org/hyperic/hq/measurement/server/session/ReportProcessorEJBImpl.java 2010-03-26 23:17:07 UTC (rev 14428) @@ -212,6 +212,10 @@ } continue; } + + // FIXME: reosurceMatchesAgent() and the call to getAgent() can be + // consolidated, the agent match can be checked by getting the agent + // for the instanceID from the resource if (!resourceMatchesAgent(res, agentToken)) { String ipAddr = "<Unknown IP address>"; String portString = "<Unknown port>"; |