Skip to content

Commit

Permalink
initialize util.Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb committed Aug 7, 2024
1 parent f033917 commit 0c3c818
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,6 @@ func runService(action string, flags []string) {
if err != nil {
log.Fatal(err)
}
} else {
util.Logger = service.ConsoleLogger
}

go func() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
)

var (
Json = jsoniter.ConfigCompatibleWithStandardLibrary
Logger service.Logger
Json = jsoniter.ConfigCompatibleWithStandardLibrary
Logger service.Logger = service.ConsoleLogger
)

func IsWindows() bool {
Expand Down

0 comments on commit 0c3c818

Please sign in to comment.