]> git.giacomolli.uk - onechat/blobdiff - probe.go
Log failed summary builds
[onechat] / probe.go
index ba656ffa536d971e70f3d3d160861b0fdbcf3296..5b233ed4455cbbec82739d6e456f0da7c4eba1d3 100644 (file)
--- a/probe.go
+++ b/probe.go
@@ -8,6 +8,7 @@ import (
        "errors"
        "fmt"
        "io"
        "errors"
        "fmt"
        "io"
+       "log"
        "maps"
        "os"
        "path/filepath"
        "maps"
        "os"
        "path/filepath"
@@ -105,7 +106,9 @@ func probe(ctx context.Context, args []string, out io.Writer) (err error) {
                slots: make(chan struct{}, builds),
        }
 
                slots: make(chan struct{}, builds),
        }
 
-       memory, err := openMemory(ctx, root, time.Now, summarizer)
+       // 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))
        if err != nil {
                return err
        }
        if err != nil {
                return err
        }