@@ -570,7 +570,7 @@ private Map<String, Object> mergeMap(Map<String, Object> dataMap, Map<String, Ob
570
570
public void enrichCollection (Node node ) throws Exception {
571
571
572
572
String contentId = node .getIdentifier ();
573
- LOGGER .info ("Processing Collection Content :" + contentId );
573
+ LOGGER .info ("Processing collection content for enrichment :" + contentId );
574
574
Response response = util .getHirerachy (contentId );
575
575
if (null != response && null != response .getResult ()) {
576
576
Map <String , Object > content = (Map <String , Object >) response .getResult ().get ("content" );
@@ -580,7 +580,7 @@ public void enrichCollection(Node node) throws Exception {
580
580
leafCount = getLeafNodeCount (content , leafCount );
581
581
content .put (ContentAPIParams .leafNodesCount .name (), leafCount );
582
582
node .getMetadata ().put (ContentAPIParams .leafNodesCount .name (), leafCount );
583
-
583
+ LOGGER . info ( "Updated leafNodesCount for content id: " + contentId + " :: " + leafCount );
584
584
if (StringUtils .equalsIgnoreCase ((String )node .getMetadata ().get ("visibility" ), ContentAPIParams .Parent .name ()))
585
585
return ;
586
586
@@ -599,6 +599,9 @@ public void enrichCollection(Node node) throws Exception {
599
599
node .getMetadata ().put (ContentAPIParams .mimeTypesCount .name (), mimeTypeMap );
600
600
node .getMetadata ().put (ContentAPIParams .contentTypesCount .name (), contentTypeMap );
601
601
node .getMetadata ().put (ContentAPIParams .childNodes .name (), childNodes );
602
+ LOGGER .info ("Updated toc_url, mimeTypesCount, contentTypesCount, childNodes." );
603
+ } else {
604
+ LOGGER .info ("Get hierarchy response is null for content id: " + contentId + " :: " + response );
602
605
}
603
606
}
604
607
0 commit comments