Skip to content

Commit

Permalink
Remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
krhitesh7 committed Nov 28, 2024
1 parent b6b7a23 commit d250841
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions pkg/cache/v3/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package cache

import (
"context"
"errors"
"fmt"
"sync/atomic"

Expand Down Expand Up @@ -241,13 +240,11 @@ func (r *RawDeltaResponse) GetDeltaDiscoveryResponse() (*discovery.DeltaDiscover
for _, resource := range r.Resources {
name := resource.Name
if name == "" {
fmt.Println("name is empty", r.GetDeltaRequest().GetTypeUrl(), resource)
continue
}

if resource.Version == "" {
fmt.Println("version is empty", r.GetDeltaRequest().GetTypeUrl(), resource)
return nil, errors.New("failed to get a resource hash")
continue
}
marshaledResources = append(marshaledResources, &discovery.Resource{
Name: name,
Expand Down
4 changes: 0 additions & 4 deletions pkg/cache/v3/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -1000,10 +1000,6 @@ func (cache *snapshotCache) respondDelta(ctx context.Context, snapshot ResourceS
systemVersion: snapshot.GetVersion(request.GetTypeUrl()),
})

if request.GetTypeUrl() == "type.googleapis.com/envoy.config.listener.v3.Listener" {
fmt.Println("resp.Resources", len(resp.Resources))
}

// Only send a response if there were changes
// We want to respond immediately for the first wildcard request in a stream, even if the response is empty
// otherwise, envoy won't complete initialization
Expand Down

0 comments on commit d250841

Please sign in to comment.