Skip to content

Commit

Permalink
adding logs
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthopsmx committed Oct 14, 2024
1 parent 2c4c976 commit 7c8e46b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/serviceconfig/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion internal/serviceconfig/service_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 7c8e46b

Please sign in to comment.