From b787ab44988733aef0441140fab3065f0309a3a8 Mon Sep 17 00:00:00 2001 From: lubronzhan Date: Mon, 7 Aug 2023 16:48:15 -0700 Subject: [PATCH] Modify golangci-lint for more context --- .github/workflows/golangci-lint.yaml | 3 ++- pkg/session/session.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 62cf8b8d46..8f6bf674e3 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -23,4 +23,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299 # tag=v3.6.0 with: - version: v1.53.3 \ No newline at end of file + version: v1.53.3 + args: --out-format=line-number diff --git a/pkg/session/session.go b/pkg/session/session.go index b32e46e47c..7f7336151e 100644 --- a/pkg/session/session.go +++ b/pkg/session/session.go @@ -332,7 +332,7 @@ func login(ctx context.Context, logger logr.Logger, client *govmomi.Client, user logger.Info("Bother usrename/password and userCertificate/userKey are set. Using the userCertificate/userKey") } - logger.V(4).Info("Session.LoginByToken with certificate", string(userCert)) + logger.V(4).Info("Session.LoginByToken with certificate", userCert) signer, err := signer(ctx, logger, client.Client, userCert, userKey) if err != nil { return err