"errors"
"fmt"
"io"
- "log"
+ "log/slog"
"os"
"path/filepath"
"strconv"
// The report of the probe counts the failed calls, so the lines of the
// failed builds are not needed.
- memory, err := openMemory(ctx, root, time.Now, summarizer, log.New(io.Discard, "", 0))
+ memory, err := openMemory(ctx, root, time.Now, summarizer, slog.New(slog.DiscardHandler))
if err != nil {
return fmt.Errorf("open probe memory: %w", err)
}