Skip to content

Commit

Permalink
cloud-api-adaptor: log agent proxy connection retries
Browse files Browse the repository at this point in the history
Log progress for agent proxy connection

Signed-off-by: Mike Frisch <[email protected]>
  • Loading branch information
EmmEff authored and bpradipt committed Aug 20, 2024
1 parent ac5b3b8 commit 3c2c82e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cloud-api-adaptor/pkg/adaptor/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ func (p *agentProxy) dial(ctx context.Context, address string) (net.Conn, error)
err := retry.Do(
func() error {
var err error
conn, err = dialer.DialContext(ctx, "tcp", address)
if conn, err = dialer.DialContext(ctx, "tcp", address); err != nil {
logger.Printf("Retrying agent proxy connection to %s...", address)
}
return err
},
retry.Attempts(0),
Expand Down

0 comments on commit 3c2c82e

Please sign in to comment.