Skip to content

Commit

Permalink
Remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiazlo committed Dec 4, 2018
1 parent 42a77e9 commit de11a30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions gossip/auditor/auditor.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ func (t *MembershipTask) getSnapshot(version uint64) (*protocol.SignedSnapshot,
buf, err := ioutil.ReadAll(resp.Body)
sDec, err := base64.StdEncoding.DecodeString(string(buf))
if err != nil {
fmt.Println("##########################", buf)
return nil, fmt.Errorf("Error decoding signed snapshot %d base64", t.s.Snapshot.Version)
}
var s protocol.SignedSnapshot
Expand All @@ -101,7 +100,7 @@ func (t *MembershipTask) Do() {
proof, err := t.qed.Membership(t.s.Snapshot.EventDigest, t.s.Snapshot.Version)
if err != nil {
// retry
log.Errorf("Error executing incremental query: %v", err)
log.Errorf("Error executing membership query: %v", err)
}

snap, err := t.getSnapshot(proof.CurrentVersion)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/test_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type alertStore struct {
func (a *alertStore) Append(n *gossip.Alert) {
a.Lock()
defer a.Unlock()
fmt.Println("Storing alert: ", n)
a.d = append(a.d, n)
}

Expand All @@ -58,7 +59,6 @@ func (s *snapStore) Put(b *protocol.BatchSnapshots) {
defer s.Unlock()

for _, snap := range b.Snapshots {
fmt.Println("Storing ", snap.Snapshot.Version, " snapshot")
s.d[snap.Snapshot.Version] = snap
}
}
Expand Down

0 comments on commit de11a30

Please sign in to comment.