diff --git a/pkg/plugin/raw.go b/pkg/plugin/raw.go index 37d16e7a4c1..5c2fcea4efa 100644 --- a/pkg/plugin/raw.go +++ b/pkg/plugin/raw.go @@ -96,7 +96,7 @@ func (t *rawPluginTask) Start() error { go t.handlePluginStderr(t.plugin.Name, stderr) t.cmd = cmd - logger.Infof("Plugin %s started: %s", t.plugin.Name, strings.Join(cmd.Args, " ")) + logger.Debugf("Plugin %s started: %s", t.plugin.Name, strings.Join(cmd.Args, " ")) // send the stdout to the plugin output go func() { @@ -112,7 +112,7 @@ func (t *rawPluginTask) Start() error { errStr := err.Error() output.Error = &errStr } - logger.Infof("Plugin %s finished", t.plugin.Name) + logger.Debugf("Plugin %s finished", t.plugin.Name) t.result = &output }() diff --git a/pkg/scraper/script.go b/pkg/scraper/script.go index aa410d7ff37..70bebfe4d34 100644 --- a/pkg/scraper/script.go +++ b/pkg/scraper/script.go @@ -84,7 +84,7 @@ func (s *scriptScraper) runScraperScript(ctx context.Context, inString string, o go handleScraperStderr(s.config.Name, stderr) - logger.Infof("Scraper script <%s> started", strings.Join(cmd.Args, " ")) + logger.Debugf("Scraper script <%s> started", strings.Join(cmd.Args, " ")) // TODO - add a timeout here // Make a copy of stdout here. This allows us to decode it twice. @@ -112,7 +112,7 @@ func (s *scriptScraper) runScraperScript(ctx context.Context, inString string, o } err = cmd.Wait() - logger.Infof("Scraper script finished") + logger.Debugf("Scraper script finished") if err != nil { return fmt.Errorf("%w: %v", ErrScraperScript, err)