diff --git a/pkg/cmd/roachtest/tests/costfuzz.go b/pkg/cmd/roachtest/tests/costfuzz.go index 96b4824e9a36..0816bcfd9bbe 100644 --- a/pkg/cmd/roachtest/tests/costfuzz.go +++ b/pkg/cmd/roachtest/tests/costfuzz.go @@ -223,6 +223,7 @@ func runCostFuzzQuery( // Then, rerun the statement with cost perturbation. rows2, err := conn.Query(stmt) if err != nil { + logStmt(stmt) logStmt(seedStmt) logStmt(stmt) return errors.Wrap(err, "error while running perturbed statement")