From e26fa1539d56eae1655fc7d4790cb787d77bf646 Mon Sep 17 00:00:00 2001 From: Fabio Barone Date: Wed, 19 Dec 2018 10:22:53 -0500 Subject: [PATCH] swarm/network: removed printResults --- swarm/network/kademlia_test.go | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/swarm/network/kademlia_test.go b/swarm/network/kademlia_test.go index b4ca9fefed..e7e8863c3b 100644 --- a/swarm/network/kademlia_test.go +++ b/swarm/network/kademlia_test.go @@ -32,10 +32,6 @@ import ( "github.com/ethereum/go-ethereum/swarm/pot" ) -var ( - printResults = flag.Bool("print", false, "print results for the EachBin test") -) - func init() { h := log.LvlFilterHandler(log.LvlWarn, log.StreamHandler(os.Stderr, log.TerminalFormat(true))) log.Root().SetHandler(h) @@ -1037,14 +1033,11 @@ func TestEachBin(t *testing.T) { } } - if *printResults { - for p, subs := range fakeSubscriptions { - fmt.Println(fmt.Sprintf("Peer %s has the following fake subscriptions: ", p)) - fmt.Print("...") - for _, bin := range subs { - fmt.Print(fmt.Sprintf("%d,", bin)) - } - fmt.Println("") + //print some output + for p, subs := range fakeSubscriptions { + log.Debug(fmt.Sprintf("Peer %s has the following fake subscriptions: ", p)) + for _, bin := range subs { + log.Debug(fmt.Sprintf("%d,", bin)) } } }