commands: Make hugo env respect --logLevel

Fixes #11145
This commit is contained in:
Bjørn Erik Pedersen 2023-06-21 23:18:38 +02:00
parent 49336bfc58
commit b1016d2e26
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
4 changed files with 7 additions and 3 deletions

View file

@ -32,7 +32,7 @@ func newEnvCommand() simplecobra.Commander {
r.Printf("GOARCH=%q\n", runtime.GOARCH)
r.Printf("GOVERSION=%q\n", runtime.Version())
if r.verbose {
if r.isVerbose() {
deps := hugo.GetDependencyList()
for _, dep := range deps {
r.Printf("%s\n", dep)