mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
ACE-3093: Changed the logging level of the surfConfig patch.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@87883 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -259,7 +259,10 @@ public class SurfConfigFolderPatch extends AsynchronousPatch
|
|||||||
|
|
||||||
if (surfConfigPair == null)
|
if (surfConfigPair == null)
|
||||||
{
|
{
|
||||||
logger.info("WARNING: unable to find surf-config folder for site: [" + siteName + ']');
|
if (logger.isDebugEnabled())
|
||||||
|
{
|
||||||
|
logger.debug("Unable to find surf-config folder for site: [" + siteName + ']');
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
NodeRef surfConfigNodeRef = surfConfigPair.getSecond().getChildRef();
|
NodeRef surfConfigNodeRef = surfConfigPair.getSecond().getChildRef();
|
||||||
@@ -283,14 +286,20 @@ public class SurfConfigFolderPatch extends AsynchronousPatch
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
logger.info("WARNING: unable to find surf-config/components folder for site: [" + siteName + ']');
|
if (logger.isDebugEnabled())
|
||||||
|
{
|
||||||
|
logger.debug("Unable to find surf-config/components folder for site: [" + siteName + ']');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// cm:surf-config/cm:pages folder
|
// cm:surf-config/cm:pages folder
|
||||||
NodeRef pagesNodeRef = nodeService.getChildByName(surfConfigNodeRef, ContentModel.ASSOC_CONTAINS, PAGES);
|
NodeRef pagesNodeRef = nodeService.getChildByName(surfConfigNodeRef, ContentModel.ASSOC_CONTAINS, PAGES);
|
||||||
if (pagesNodeRef == null)
|
if (pagesNodeRef == null)
|
||||||
{
|
{
|
||||||
logger.info("WARNING: unable to find surf-config/pages folder for site: [" + siteName + ']');
|
if (logger.isDebugEnabled())
|
||||||
|
{
|
||||||
|
logger.debug("Unable to find surf-config/pages folder for site: [" + siteName + ']');
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// add aspect to cm:pages
|
// add aspect to cm:pages
|
||||||
@@ -300,7 +309,10 @@ public class SurfConfigFolderPatch extends AsynchronousPatch
|
|||||||
NodeRef siteNodeRef = nodeService.getChildByName(pagesNodeRef, ContentModel.ASSOC_CONTAINS, SITE);
|
NodeRef siteNodeRef = nodeService.getChildByName(pagesNodeRef, ContentModel.ASSOC_CONTAINS, SITE);
|
||||||
if (siteNodeRef == null)
|
if (siteNodeRef == null)
|
||||||
{
|
{
|
||||||
logger.info("WARNING: unable to find surf-config/pages/site folder for site: [" + siteName + ']');
|
if (logger.isDebugEnabled())
|
||||||
|
{
|
||||||
|
logger.debug("Unable to find surf-config/pages/site folder for site: [" + siteName + ']');
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// add aspect to cm:pages/cm:site folder
|
// add aspect to cm:pages/cm:site folder
|
||||||
@@ -311,7 +323,10 @@ public class SurfConfigFolderPatch extends AsynchronousPatch
|
|||||||
|
|
||||||
if (siteChildNodeRef == null)
|
if (siteChildNodeRef == null)
|
||||||
{
|
{
|
||||||
logger.info("WARNING: unable to find surf-config/pages/site/" + siteName + " folder for site: [" + siteName + ']');
|
if (logger.isDebugEnabled())
|
||||||
|
{
|
||||||
|
logger.debug("Unable to find surf-config/pages/site/" + siteName + " folder for site: [" + siteName + ']');
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// add aspect to cm:surf-config/cm:pages/cm:site/{siteName}
|
// add aspect to cm:surf-config/cm:pages/cm:site/{siteName}
|
||||||
|
Reference in New Issue
Block a user