From 1b663cbfa2b0177eeb0230065889b669b415378c Mon Sep 17 00:00:00 2001 From: pashakostohrys Date: Tue, 12 Dec 2023 18:54:27 +0200 Subject: [PATCH] add logs --- .../commands/event_reporter_server.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/event-reporter-server/commands/event_reporter_server.go b/cmd/event-reporter-server/commands/event_reporter_server.go index 833e4fe33349f..9ed5318eb5f84 100644 --- a/cmd/event-reporter-server/commands/event_reporter_server.go +++ b/cmd/event-reporter-server/commands/event_reporter_server.go @@ -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) @@ -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")