go-doc/backend/tests/bdd/logger.go

13 lines
314 B
Go
Raw Normal View History

2026-10-07 15:03:50 +02:00
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}))
}