From 0552000d59d0933755e87ec38c79480baaddcc87 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Wed, 21 Oct 2020 11:59:02 +0100 Subject: [PATCH] logging changes --- .../main/groovy/com/muwire/core/hostcache/H2HostCache.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/hostcache/H2HostCache.groovy b/core/src/main/groovy/com/muwire/core/hostcache/H2HostCache.groovy index 974f8ea4..7cd7e1cc 100644 --- a/core/src/main/groovy/com/muwire/core/hostcache/H2HostCache.groovy +++ b/core/src/main/groovy/com/muwire/core/hostcache/H2HostCache.groovy @@ -48,6 +48,8 @@ class H2HostCache extends HostCache { if (uniqueHosts.add(d)) { allHosts.add(d) profiles.put(d, new HostMCProfile()) + + log.fine("learned about ${d.toBase32()} from hostcache $fromHostcache") } } @@ -73,7 +75,7 @@ class H2HostCache extends HostCache { if (count.COUNT < historyItems) return - log.fine("recomputing Markov for ${d.toBase32()}") + log.fine("recomputing Markov for ${d.toBase32()} from history items $count.COUNT / $historyItems") int ss = 0 int sr = 0