Skip to content

Commit

Permalink
got rid of log package, moved to golog
Browse files Browse the repository at this point in the history
  • Loading branch information
qjerome committed Sep 1, 2022
1 parent 0f46009 commit 46dabc4
Show file tree
Hide file tree
Showing 23 changed files with 570 additions and 1,067 deletions.
2 changes: 1 addition & 1 deletion .github/coverage/badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
479 changes: 0 additions & 479 deletions .github/coverage/coverage.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (a *Agent) Prepare(c *config.Agent) (err error) {
}

// loading forwarder config
if a.forwarder, err = client.NewForwarder(a.ctx, &a.config.FwdConfig); err != nil {
if a.forwarder, err = client.NewForwarder(a.ctx, &a.config.FwdConfig, a.logger); err != nil {
return
}

Expand Down
6 changes: 4 additions & 2 deletions agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,14 @@ func testHook(h *Agent, e *event.EdrEvent) {
}

func TestAgent(t *testing.T) {
tt := toast.FromT(t)
defer cleanup()
_, clConf := prepareManager()

manager, clConf := prepareManager()
manager.Logger.ErrorHandler = tt.CheckErr

installSysmon()

tt := toast.FromT(t)
var gotSysmonEvent bool

tmp, err := utils.HidsMkTmpDir()
Expand Down
Loading

0 comments on commit 46dabc4

Please sign in to comment.