12 lines
314 B
Go
12 lines
314 B
Go
package bdd
|
|
|
|
import (
|
|
"io"
|
|
"log/slog"
|
|
)
|
|
|
|
// quietLogger keeps the BDD output readable: the harness reports failures itself,
|
|
// so the router's per-request access log is discarded.
|
|
func quietLogger() *slog.Logger {
|
|
return slog.New(slog.NewTextHandler(io.Discard, &slog.HandlerOptions{Level: slog.LevelError}))
|
|
}
|