From: <go...@us...> - 2010-06-23 10:14:56
|
Revision: 7238 http://unicore.svn.sourceforge.net/unicore/?rev=7238&view=rev Author: golbi Date: 2010-06-23 10:14:49 +0000 (Wed, 23 Jun 2010) Log Message: ----------- Improved debug logging Modified Paths: -------------- uvos/xfire-voutils/trunk/src/main/java/pl/edu/icm/unicore/voutils/VOAttributeFetcher.java Modified: uvos/xfire-voutils/trunk/src/main/java/pl/edu/icm/unicore/voutils/VOAttributeFetcher.java =================================================================== --- uvos/xfire-voutils/trunk/src/main/java/pl/edu/icm/unicore/voutils/VOAttributeFetcher.java 2010-06-23 09:53:01 UTC (rev 7237) +++ uvos/xfire-voutils/trunk/src/main/java/pl/edu/icm/unicore/voutils/VOAttributeFetcher.java 2010-06-23 10:14:49 UTC (rev 7238) @@ -277,8 +277,11 @@ Cache c = cacheMan.getCache(UNSCOPED_CACHE); Element e = c.get(subject.toString()); if (e != null) + { + if (log.isDebugEnabled()) + log.debug("Returning cached attributes for " + subject); attrs = (List<Attribute>) e.getValue(); - else + } else { attrs = doRealReceive(subject, null, tokens); @@ -296,8 +299,11 @@ String key = scope + " //// " + subject; Element e = c.get(key); if (e != null) + { + if (log.isDebugEnabled()) + log.debug("Returning cached attributes for " + subject); attrs = (List<Attribute>) e.getValue(); - else + } else { attrs = doRealReceive(subject, scope, tokens); @@ -355,7 +361,8 @@ Object proxy = ((SAMLVOClient)client).getProxy(); ClientTrustDelegationUtil.addTrustDelegation(proxy, td); } - + log.debug("Performing SAML query for " + subject.getValue() + + " in the scope " + scope); return scope == null ? client.getAttributes(subject) : client.getAttributes(subject, scope); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |