Skip to content

Commit

Permalink
LogLevel is not applied when the test is run. (#5)
Browse files Browse the repository at this point in the history
* LogLevel is not applied when the test is run.

* fix golangci-lint.yml
  • Loading branch information
RyuichiNamba-fj authored Apr 7, 2022
1 parent 0778e20 commit 512a2ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/service/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ func (nrf *NRF) Initialize(c *cli.Context) error {
return err
}

nrf.setLogLevel()
nrf.SetLogLevel()

return nil
}

func (nrf *NRF) setLogLevel() {
func (nrf *NRF) SetLogLevel() {
if factory.NrfConfig.Logger == nil {
logger.InitLog.Warnln("NRF config without log level setting!!!")
return
Expand Down

0 comments on commit 512a2ec

Please sign in to comment.