Put some log at INFO level

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/social-networking/social-data-indexer-se-plugin@128905 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-05-30 15:37:57 +00:00
parent 2b7a5fff59
commit 579cc4b4b1
1 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ public class SocialDataIndexerPlugin extends Plugin<SocialDataIndexerPluginDecla
hostsToContact = elasticCluster.getHosts();
portNumbers = elasticCluster.getPorts();
logger.debug("Creating elasticsearch client connection for hosts = " + hostsToContact + ", ports = " + portNumbers + " and "
logger.info("Creating elasticsearch client connection for hosts = " + hostsToContact + ", ports = " + portNumbers + " and "
+ " cluster's name = " + clusterName);
// set cluster's name to check and the sniff property to true.
@ -144,7 +144,7 @@ public class SocialDataIndexerPlugin extends Plugin<SocialDataIndexerPluginDecla
addEnhancedFeedsInBulk(feeds, init);
logger.debug("Number of indexed feeds is " + feeds.size() + " for vre " + vreID);
}catch(Exception e){
logger.debug("Exception while saving feeds/comments into the index for vre " + vreID, e);
logger.error("Exception while saving feeds/comments into the index for vre " + vreID, e);
continue;
}
@ -159,7 +159,7 @@ public class SocialDataIndexerPlugin extends Plugin<SocialDataIndexerPluginDecla
deleteDocumentsWithTimestampLowerThan(init);
long end = System.currentTimeMillis();
logger.debug("Synchronization thread ends running. It took " + (end - init) + " milliseconds " +
logger.info("Synchronization thread ends running. It took " + (end - init) + " milliseconds " +
" that is " + (double)(end - init)/(1000.0 * 60.0) + " minutes.");
}catch(Exception e){