Skip to content

Commit

Permalink
Change debug prints by log.Infof
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiazlo committed Dec 5, 2018
1 parent 99ff66b commit 0bd32f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions gossip/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
package gossip

import (
"fmt"

"github.com/bbva/qed/gossip/member"
"github.com/bbva/qed/log"
"github.com/bbva/qed/protocol"
Expand Down Expand Up @@ -89,7 +87,7 @@ func (d *agentDelegate) NotifyMsg(msg []byte) {
return
}

fmt.Printf("agentDelegate.NotifyMsg(): got batch %+v\n", batchId(&batch))
log.Infof("Notifying batch %+v\n", batchId(&batch))
d.agent.In <- &batch
}

Expand Down
2 changes: 1 addition & 1 deletion gossip/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ func (d DummyProcessor) Process(b *protocol.BatchSnapshots) {

// time.Sleep(1 * time.Second)
}
fmt.Printf("process(): Processed %v elements of batch id %v\n", len(b.Snapshots), b.Snapshots[0].Snapshot.Version)
log.Infof("Processed %v elements of batch id %v\n", len(b.Snapshots), b.Snapshots[0].Snapshot.Version)
}

0 comments on commit 0bd32f1

Please sign in to comment.