From 23587b6dfd2bc905f87df9f66c54cfb4bef38d00 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Tue, 3 Feb 2015 01:06:07 -0800 Subject: [PATCH] logs: removed all log.Errors unhelpful to users Let's save log.Error for things the user can take action on. Moved all our diagnostics to log.Debug. We can ideally reduce them even further. --- dht_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dht_test.go b/dht_test.go index 9d65a6f..b57caac 100644 --- a/dht_test.go +++ b/dht_test.go @@ -262,7 +262,7 @@ func waitForWellFormedTables(t *testing.T, dhts []*IpfsDHT, minPeers, avgPeers i for { select { case <-timeoutA: - log.Errorf("did not reach well-formed routing tables by %s", timeout) + log.Debugf("did not reach well-formed routing tables by %s", timeout) return false // failed case <-time.After(5 * time.Millisecond): if checkTables() { @@ -322,7 +322,7 @@ func TestBootstrap(t *testing.T) { } }() - waitForWellFormedTables(t, dhts, 7, 10, 5*time.Second) + waitForWellFormedTables(t, dhts, 7, 10, 20*time.Second) close(stop) if u.Debug { @@ -407,7 +407,7 @@ func TestPeriodicBootstrap(t *testing.T) { // this is async, and we dont know when it's finished with one cycle, so keep checking // until the routing tables look better, or some long timeout for the failure case. - waitForWellFormedTables(t, dhts, 7, 10, 5*time.Second) + waitForWellFormedTables(t, dhts, 7, 10, 20*time.Second) if u.Debug { printRoutingTables(dhts)