You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2014/02/06 14:04:33 UTC
svn commit: r1565219 -
/stanbol/branches/release-0.12/enhancement-engines/entitylinking/engine/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/impl/EntityLinker.java
Author: rwesten
Date: Thu Feb 6 13:04:33 2014
New Revision: 1565219
URL: http://svn.apache.org/r1565219
Log:
STANBOL-1139: changed log level of the EntityLinkiner to not printing logs on every enhancement requests. Statistics are now DEBUG level
Modified:
stanbol/branches/release-0.12/enhancement-engines/entitylinking/engine/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/impl/EntityLinker.java
Modified: stanbol/branches/release-0.12/enhancement-engines/entitylinking/engine/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/impl/EntityLinker.java
URL: http://svn.apache.org/viewvc/stanbol/branches/release-0.12/enhancement-engines/entitylinking/engine/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/impl/EntityLinker.java?rev=1565219&r1=1565218&r2=1565219&view=diff
==============================================================================
--- stanbol/branches/release-0.12/enhancement-engines/entitylinking/engine/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/impl/EntityLinker.java (original)
+++ stanbol/branches/release-0.12/enhancement-engines/entitylinking/engine/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/impl/EntityLinker.java Thu Feb 6 13:04:33 2014
@@ -1260,13 +1260,13 @@ public class EntityLinker {
* @param log the logger used to log the statistics
*/
public void logStatistics(Logger log){
- log.info("EntityLinking Statistics:");
+ log.debug("EntityLinking Statistics:");
double textProcessingDuration = textProcessingStats.getDuration();
double lookupDuration = lookupStats.getDuration();
double matchingDuration = matchingStats.getDuration();
double rankingDuration = rankingStats.getDuration();
double other = processingTime-textProcessingDuration-lookupDuration-matchingDuration;
- log.info(" - overal: {}ms (text processing: {}%, lookup: {}%, matching {}%, ranking {}%, other {}%)", new Object[]{
+ log.debug(" - overal: {}ms (text processing: {}%, lookup: {}%, matching {}%, ranking {}%, other {}%)", new Object[]{
processingTime,
Math.round(textProcessingDuration*100/(double)processingTime),
Math.round(lookupDuration*100/(double)processingTime),
@@ -1278,8 +1278,8 @@ public class EntityLinker {
lookupStats.printStatistics(log);
float cacheHitPercentage = lookupStats.count > 0 ? //avoid division by zero
cacheHits*100f/(float)lookupStats.count : Float.NaN;
- log.info(" - cache hits: {} ({}%)",cacheHits,cacheHitPercentage);
- log.info(" - {} query results ({} filtered - {}%)",
+ log.debug(" - cache hits: {} ({}%)",cacheHits,cacheHitPercentage);
+ log.debug(" - {} query results ({} filtered - {}%)",
new Object[]{numQueryResults,numFilteredResults,
numFilteredResults*100f/(float)numQueryResults});
matchingStats.printStatistics(log);