Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: using error log instead of errorf #39

Merged
merged 2 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/mod/dispatcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func TestDefDispatcher_InitAndClose(t *testing.T) {
})
log.SetLogger(mLogger)
d.Init()
time.Sleep(time.Second)
time.Sleep(time.Second * 5)
d.Close()
assert.True(t, calledList, tc.caseDesc)
assert.Equal(t, calledLog, tc.wantLogCalled, tc.caseDesc)
Expand Down
2 changes: 1 addition & 1 deletion pkg/mod/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@
}

func (p *DefParser) handleErr(err error) {
log.Errorf("parser get some error",
log.Error("parser get some error",

Check warning on line 515 in pkg/mod/parser.go

View check run for this annotation

Codecov / codecov/patch

pkg/mod/parser.go#L515

Added line #L515 was not covered by tests
"module", "parser",
"err", err)
}
Loading