mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user