From 03e15ab378952cc51d3098c3d93f09dc5aad5b52 Mon Sep 17 00:00:00 2001 From: "namba.ryuichi" Date: Tue, 5 Apr 2022 06:07:51 +0000 Subject: [PATCH 1/2] LogLevel is not applied when the test is run. --- pkg/service/init.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/service/init.go b/pkg/service/init.go index 4e7591a..2f0cbad 100644 --- a/pkg/service/init.go +++ b/pkg/service/init.go @@ -72,7 +72,7 @@ func (udr *UDR) Initialize(c *cli.Context) error { } } - udr.setLogLevel() + udr.SetLogLevel() if err := factory.CheckConfigVersion(); err != nil { return err @@ -85,7 +85,7 @@ func (udr *UDR) Initialize(c *cli.Context) error { return nil } -func (udr *UDR) setLogLevel() { +func (udr *UDR) SetLogLevel() { if factory.UdrConfig.Logger == nil { logger.InitLog.Warnln("UDR config without log level setting!!!") return From ddae648801138c99fdf67688e55d877cea7bc69b Mon Sep 17 00:00:00 2001 From: "namba.ryuichi" Date: Thu, 7 Apr 2022 05:33:11 +0000 Subject: [PATCH 2/2] fix golangci-lint.yml --- .github/workflows/golangci-lint.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 72f27e4..f2f96ce 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -14,12 +14,17 @@ jobs: name: lint runs-on: ubuntu-latest steps: + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '1.14.4' - uses: actions/checkout@v2 - name: Run golangci-lint uses: golangci/golangci-lint-action@v2 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. version: v1.35.0 + skip-go-installation: true # Optional: working directory, useful for monorepos # working-directory: somedir