mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
swarm/network: removed printResults
This commit is contained in:
parent
c5851f1a51
commit
e26fa1539d
1 changed files with 5 additions and 12 deletions
|
|
@ -32,10 +32,6 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/swarm/pot"
|
"github.com/ethereum/go-ethereum/swarm/pot"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
printResults = flag.Bool("print", false, "print results for the EachBin test")
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
h := log.LvlFilterHandler(log.LvlWarn, log.StreamHandler(os.Stderr, log.TerminalFormat(true)))
|
h := log.LvlFilterHandler(log.LvlWarn, log.StreamHandler(os.Stderr, log.TerminalFormat(true)))
|
||||||
log.Root().SetHandler(h)
|
log.Root().SetHandler(h)
|
||||||
|
|
@ -1037,14 +1033,11 @@ func TestEachBin(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if *printResults {
|
//print some output
|
||||||
for p, subs := range fakeSubscriptions {
|
for p, subs := range fakeSubscriptions {
|
||||||
fmt.Println(fmt.Sprintf("Peer %s has the following fake subscriptions: ", p))
|
log.Debug(fmt.Sprintf("Peer %s has the following fake subscriptions: ", p))
|
||||||
fmt.Print("...")
|
for _, bin := range subs {
|
||||||
for _, bin := range subs {
|
log.Debug(fmt.Sprintf("%d,", bin))
|
||||||
fmt.Print(fmt.Sprintf("%d,", bin))
|
|
||||||
}
|
|
||||||
fmt.Println("")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue