Skip to content

Commit 78f5c27

Browse files
LogLevel is not applied when the test is run. (#11)
* LogLevel is not applied when the test is run. * fix golangci-lint.yml
1 parent f91c29b commit 78f5c27

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/golangci-lint.yml

+5
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@ jobs:
1414
name: lint
1515
runs-on: ubuntu-latest
1616
steps:
17+
- name: Set up Go
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: '1.14.4'
1721
- uses: actions/checkout@v2
1822
- name: Run golangci-lint
1923
uses: golangci/golangci-lint-action@v2
2024
with:
2125
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
2226
version: v1.35.0
27+
skip-go-installation: true
2328

2429
# Optional: working directory, useful for monorepos
2530
# working-directory: somedir

pkg/service/init.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ func (udm *UDM) Initialize(c *cli.Context) error {
8383
return validErr
8484
}
8585

86-
udm.setLogLevel()
86+
udm.SetLogLevel()
8787

8888
return nil
8989
}
9090

91-
func (udm *UDM) setLogLevel() {
91+
func (udm *UDM) SetLogLevel() {
9292
if factory.UdmConfig.Logger == nil {
9393
logger.InitLog.Warnln("UDM config without log level setting!!!")
9494
return

0 commit comments

Comments
 (0)