Skip to content

Commit

Permalink
Cleaning up debug messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
awgh committed Feb 14, 2018
1 parent da26039 commit 0209660
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions nodes/qldb/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (node *Node) Pickup(rpub bc.PubKey, lastTime int64, maxBytes int64, channel

for bytesRead < maxBytes {
r := transactQuery(c, sqlq, rowsPerRequest, offset)
log.Printf("Rows per request: %d\n", rowsPerRequest)
//log.Printf("Rows per request: %d\n", rowsPerRequest)
isEmpty := true //todo: must be an official way to do this
for r.Next() {
isEmpty = false
Expand All @@ -127,7 +127,7 @@ func (node *Node) Pickup(rpub bc.PubKey, lastTime int64, maxBytes int64, channel
}
offset += rowsPerRequest
}
log.Printf("maxBytes = %d, bytesRead = %d\n", maxBytes, bytesRead)
//log.Printf("maxBytes = %d, bytesRead = %d\n", maxBytes, bytesRead)
// Return things

//log.Printf("rows returned by Pickup query: %d, lastTime: %d\n", len(msgs), lastTimeReturned)
Expand Down
10 changes: 5 additions & 5 deletions policy/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,15 @@ func (s *P2P) mdnsListen() error {
peerlist[target] = trans
go func() {
for s.IsListening {
st := time.Now()
//st := time.Now()
if happy, err := PollServer(trans, s.Node, target[len(u.Scheme)+3:], pubsrv); !happy {
log.Println(err.Error())
}
st2 := time.Now()
log.Printf("p2p PollServer took: %s\n", st2.Sub(st).String())
//st2 := time.Now()
//log.Printf("p2p PollServer took: %s\n", st2.Sub(st).String())
runtime.GC()
st3 := time.Now()
log.Printf("p2p GC took: %s\n", st3.Sub(st2).String())
//st3 := time.Now()
//log.Printf("p2p GC took: %s\n", st3.Sub(st2).String())
time.Sleep(time.Duration(s.ListenInterval) * time.Millisecond) // update interval
}
}()
Expand Down

0 comments on commit 0209660

Please sign in to comment.