From 688b0b73748a774874229bb91890b4cf8015d1ad Mon Sep 17 00:00:00 2001 From: w-h-a Date: Sun, 25 Aug 2024 11:16:26 -0700 Subject: [PATCH] fix: sidecar --- sidecar/custom/sidecar.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sidecar/custom/sidecar.go b/sidecar/custom/sidecar.go index cf58bc6..502642f 100644 --- a/sidecar/custom/sidecar.go +++ b/sidecar/custom/sidecar.go @@ -183,7 +183,7 @@ func (s *customSidecar) postEventToApp(event *sidecar.Event) error { var rsp *sidecar.Event var err error - url := fmt.Sprintf("%s:%s", s.options.ServiceName, s.options.ServicePort) + url := fmt.Sprintf("%s:%s", s.options.ServiceName, s.options.ServicePort.Port) if s.options.ServicePort.Protocol == "rpc" { // TODO: refactor @@ -217,8 +217,6 @@ func (s *customSidecar) postEventToApp(event *sidecar.Event) error { func (s *customSidecar) sendEventViaHttp(namespace, name, port, endpoint, baseUrl string, event *sidecar.Event) (*sidecar.Event, error) { p, _ := strconv.Atoi(port) - log.Infof("NAMESPACE %s NAME %s PORT %s ENDPOINT %s URL %s EVENT %+v", namespace, name, port, endpoint, baseUrl, event) - req := s.options.HttpClient.NewRequest( client.RequestWithNamespace(namespace), client.RequestWithName(name),