remove default output from collector
@@ -7,7 +7,6 @@ import (
"io"
"log"
"net/http"
- "os"
"strings"
"sync"
"time"
@@ -37,7 +36,7 @@ type Collector struct {
Targets map[string]*Target
Logger *log.Logger
httpServer *http.Server
- defaultOutput io.Writer
+
ctx context.Context
cancelFn context.CancelFunc
}
@@ -73,7 +72,6 @@ func NewCollector(ctx context.Context,
Targets: make(map[string]*Target),
Logger: logger,
httpServer: httpServer,
- defaultOutput: os.Stdout,
ctx: nctx,
cancelFn: cancel,
}
