Skip to content

Commit

Permalink
roachtest: print to correct logs in gossip/chaos
Browse files Browse the repository at this point in the history
It was printing to Stdout, where the output is hard to find.

Touches cockroachdb#38829.

Release note: None
  • Loading branch information
tbg committed Jul 23, 2019
1 parent 7111a67 commit 063296f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/roachtest/gossip.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ SELECT string_agg(source_id::TEXT || ':' || target_id::TEXT, ',')
}
for _, id := range strings.FieldsFunc(s, split) {
if id == deadNodeStr {
fmt.Printf("%d: gossip not ok (dead node %d present): %s (%.0fs)\n",
c.l.Printf("%d: gossip not ok (dead node %d present): %s (%.0fs)\n",
i, deadNode, s, timeutil.Since(start).Seconds())
return false
}
Expand All @@ -83,7 +83,7 @@ SELECT string_agg(source_id::TEXT || ':' || target_id::TEXT, ',')
continue
}
if expected != s {
fmt.Printf("%d: gossip not ok: %s != %s (%.0fs)\n",
c.l.Printf("%d: gossip not ok: %s != %s (%.0fs)\n",
i, expected, s, timeutil.Since(start).Seconds())
return false
}
Expand Down

0 comments on commit 063296f

Please sign in to comment.