command/init: add debug messages when -plugin-dir is set
This commit is contained in:
parent
e690fa1363
commit
a33a613703
|
@ -3,6 +3,7 @@ package command
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -449,6 +450,11 @@ func (c *InitCommand) getProviders(earlyConfig *earlyconfig.Config, state *state
|
||||||
// is not available for installation.
|
// is not available for installation.
|
||||||
source := c.providerCustomLocalDirectorySource(pluginDirs)
|
source := c.providerCustomLocalDirectorySource(pluginDirs)
|
||||||
inst = c.providerInstallerCustomSource(source)
|
inst = c.providerInstallerCustomSource(source)
|
||||||
|
|
||||||
|
// The default (or configured) search paths are logged earlier, in provider_source.go
|
||||||
|
// Log that those are being overridden by the `-plugin-dir` command line options
|
||||||
|
log.Printf("[DEBUG] init: overriding provider plugin search paths")
|
||||||
|
log.Printf("[DEBUG] will search for provider plugins in %s", pluginDirs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Because we're currently just streaming a series of events sequentially
|
// Because we're currently just streaming a series of events sequentially
|
||||||
|
|
Loading…
Reference in New Issue