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 diff --git a/pkg/service/init.go b/pkg/service/init.go index bdf374c..ec05137 100644 --- a/pkg/service/init.go +++ b/pkg/service/init.go @@ -75,7 +75,7 @@ func (nssf *NSSF) Initialize(c *cli.Context) error { } } - nssf.setLogLevel() + nssf.SetLogLevel() if err := factory.CheckConfigVersion(); err != nil { return err @@ -84,7 +84,7 @@ func (nssf *NSSF) Initialize(c *cli.Context) error { return nil } -func (nssf *NSSF) setLogLevel() { +func (nssf *NSSF) SetLogLevel() { if factory.NssfConfig.Logger == nil { logger.InitLog.Warnln("NSSF config without log level setting!!!") return