Improved debugging output when executing an XPath from a javascript Node object

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7240 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-10-26 14:41:02 +00:00
parent 126421fb15
commit 450ec0c986

View File

@@ -2030,7 +2030,17 @@ public class ScriptNode implements Serializable, Scopeable
if (xpath.length() != 0) if (xpath.length() != 0)
{ {
if (logger.isDebugEnabled()) logger.debug("Executing xpath: " + xpath); if (logger.isDebugEnabled())
{
logger.debug("Executing xpath: " + xpath);
if (params != null)
{
for (int i=0; i<params.length; i++)
{
logger.debug(" [" + params[i].getQName() + "]=" + params[i].getDefault());
}
}
}
List<NodeRef> nodes = this.services.getSearchService().selectNodes(this.nodeRef, xpath, params, List<NodeRef> nodes = this.services.getSearchService().selectNodes(this.nodeRef, xpath, params,
this.services.getNamespaceService(), false); this.services.getNamespaceService(), false);