Skip to content

Commit

Permalink
fix: enable logging for the controller runtime (#19129)
Browse files Browse the repository at this point in the history
Signed-off-by: fsl <1171313930@qq.com>
  • Loading branch information
fengshunli authored Jul 23, 2024
1 parent 65fddab commit 3d77d9c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
ctrl "sigs.k8s.io/controller-runtime"

"github.com/argoproj/argo-cd/v2/reposerver/apiclient"
logutils "github.com/argoproj/argo-cd/v2/util/log"
"github.com/argoproj/argo-cd/v2/util/tls"

"github.com/argoproj/argo-cd/v2/applicationset/controllers"
Expand Down Expand Up @@ -95,6 +96,8 @@ func NewCommand() *cobra.Command {
cli.SetLogFormat(cmdutil.LogFormat)
cli.SetLogLevel(cmdutil.LogLevel)

ctrl.SetLogger(logutils.NewLogrusLogger(logutils.NewWithCurrentConfig()))

restConfig, err := clientConfig.ClientConfig()
errors.CheckError(err)

Expand Down

0 comments on commit 3d77d9c

Please sign in to comment.