Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package cmd
import (
"context"
"fmt"
"math"

"github.com/Escape-Technologies/cli/pkg/api/escape"
"github.com/Escape-Technologies/cli/pkg/cli/out"
Expand Down Expand Up @@ -73,7 +74,7 @@ capabilities.
version.WarnIfNotLatestVersion(c.Context())

var envVerbosity = env.GetVerbosity()
rootCmdVerbose = rootCmdVerbose + envVerbosity
rootCmdVerbose = int(math.Max(float64(rootCmdVerbose), float64(envVerbosity)))

if rootCmdVerbose > 0 { //nolint:mnd
log.SetLevel(logrus.InfoLevel)
Expand Down
Loading