From 7c8e46b7736dd64489d55992017172b002ec5a74 Mon Sep 17 00:00:00 2001 From: srikanthopsmx Date: Mon, 14 Oct 2024 12:11:12 +0530 Subject: [PATCH] adding logs --- internal/serviceconfig/endpoints.go | 4 ++-- internal/serviceconfig/service_server.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/serviceconfig/endpoints.go b/internal/serviceconfig/endpoints.go index 083da14..371b7ab 100644 --- a/internal/serviceconfig/endpoints.go +++ b/internal/serviceconfig/endpoints.go @@ -48,7 +48,7 @@ func (e *ConfiguredEndpoint) String() string { // EndpointsToPB builds the protobuf component of the "hello" message to advertise the // endpoints we have defined. func EndpointsToPB(endpoints []ConfiguredEndpoint) []*pb.EndpointHealth { - fmt.Printf("INSIDE EndpointsToPB FUNCTION") + fmt.Printf("%s\n", "INSIDE EndpointsToPB FUNCTION") pbEndpoints := make([]*pb.EndpointHealth, len(endpoints)) for i, ep := range endpoints { @@ -71,7 +71,7 @@ func EndpointsToPB(endpoints []ConfiguredEndpoint) []*pb.EndpointHealth { // ConfigureEndpoints will load services from the config, attach a processor, and return the configured // list. func ConfigureEndpoints(ctx context.Context, secretsLoader secrets.SecretLoader, serviceConfig *ServiceConfig) []ConfiguredEndpoint { - fmt.Printf("INSIDE ConfigureEndpoints FUNCTION") + fmt.Printf("%s\n", "INSIDE ConfigureEndpoints FUNCTION") logger := logging.WithContext(ctx).Sugar() // For each service, if it is enabled, find and create an instance. diff --git a/internal/serviceconfig/service_server.go b/internal/serviceconfig/service_server.go index 892d6fa..299d812 100644 --- a/internal/serviceconfig/service_server.go +++ b/internal/serviceconfig/service_server.go @@ -55,7 +55,7 @@ type SearchSpec struct { // RunHTTPSServer will listen for incoming service requests on a provided port, and // currently will use certificates or JWT to identify the destination. func RunHTTPSServer(ctx context.Context, em EchoManager, routes Destinations, tlsPath string, service IncomingServiceConfig) { - fmt.Printf("INSIDE RunHTTPSServer FUNCTION") + fmt.Printf("%s\n", "INSIDE RunHTTPSServer FUNCTION") logger := logging.WithContext(ctx).Sugar()