Update debug logging

This commit is contained in:
Reinhard Pointner 2016-03-10 20:42:32 +00:00
parent 6d127e8385
commit 52f97e6ab5
2 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,6 @@ public class CacheManager {
public synchronized Cache getCache(String name, CacheType type) {
if (!manager.cacheExists(name)) {
debug.config("Create cache: " + name);
manager.addCache(new net.sf.ehcache.Cache(type.getConfiguration(name)));
}
return new Cache(manager.getCache(name));

View File

@ -732,7 +732,7 @@ public class MediaDetection {
List<T> ranking = options.stream().sorted(comparator).distinct().collect(toList());
// DEBUG
debug.finest(format("%s => %s", terms, ranking));
debug.finest(format("Rank %s => %s", terms, ranking));
// sort by ranking and remove duplicate entries
return ranking;
@ -942,7 +942,7 @@ public class MediaDetection {
querySet = getUniqueQuerySet(emptySet(), stripBlacklistedTerms(querySet));
// DEBUG
debug.finest(format("%s => %s", queryLookupService.getName(), querySet));
debug.finest(format("Query %s => %s", queryLookupService.getName(), querySet));
final Map<Movie, Float> probabilityMap = new LinkedHashMap<Movie, Float>();
final SimilarityMetric metric = getMovieMatchMetric();