Skip to content

Commit

Permalink
chore: using error log instead of errorf (#39)
Browse files Browse the repository at this point in the history
* chore: using error log instead of errorf

* chore: add more time for test
  • Loading branch information
ShiningRush committed Oct 10, 2023
1 parent 2c1880b commit e6c7544
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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) Close() {
}

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

0 comments on commit e6c7544

Please sign in to comment.