Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh committed Dec 12, 2023
1 parent 6f15b3b commit 1b663cb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/event-reporter-server/commands/event_reporter_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,10 @@ func getApplicationClient(useGrpc bool, address, token string) appclient.Applica

errors.CheckError(err)

closer, applicationClient, err := applicationClientSet.NewApplicationClient()
_, applicationClient, err := applicationClientSet.NewApplicationClient()

errors.CheckError(err)

defer func() {
_ = closer.Close()
}()

return applicationClient
}
return appclient.NewHttpApplicationClient(token, address)
Expand Down Expand Up @@ -176,6 +172,8 @@ func NewCommand() *cobra.Command {
},
}

log.Infof("Starting event reporter server with grpc transport %v", useGrpc)

stats.RegisterStackDumper()
stats.StartStatsTicker(10 * time.Minute)
stats.RegisterHeapDumper("memprofile")
Expand Down

0 comments on commit 1b663cb

Please sign in to comment.