@@ -592,7 +592,8 @@ func CreateHostNCApipaEndpoint(
592592 }
593593
594594 if endpoint != nil {
595- logger .Debugf ("[Azure CNS] Found existing endpoint: %+v" , endpoint )
595+ logger .Debugf ("[Azure CNS] Found existing endpoint with ID: %s, Name: %s, Network: %s" ,
596+ endpoint .Id , endpoint .Name , endpoint .HostComputeNetwork )
596597 return endpoint .Id , nil
597598 }
598599
@@ -616,14 +617,18 @@ func CreateHostNCApipaEndpoint(
616617 return "" , err
617618 }
618619
619- logger .Printf ("[Azure CNS] Creating HostNCApipaEndpoint for host container connectivity: %+v" , endpoint )
620+ logger .Printf ("[Azure CNS] Creating HostNCApipaEndpoint with ID: %s, Name: %s, Network: %s" ,
621+ endpoint .Id , endpoint .Name , endpoint .HostComputeNetwork )
620622 if endpoint , err = endpoint .Create (); err != nil {
621623 err = fmt .Errorf ("Failed to create HostNCApipaEndpoint: %s. Error: %v" , endpointName , err )
622624 logger .Errorf ("[Azure CNS] %s" , err .Error ())
623625 return "" , err
624626 }
625627
626- logger .Printf ("[Azure CNS] Successfully created HostNCApipaEndpoint: %+v" , endpoint )
628+ logger .Printf ("[Azure CNS] Successfully created HostNCApipaEndpoint with ID: %s, Name: %s, Network: %s" ,
629+ endpoint .Id , endpoint .Name , endpoint .HostComputeNetwork )
630+ logger .Debugf ("[Azure CNS] Endpoint details - IpConfigurations:%v, Dns:%v, Routes:%v, MacAddress:%s, Flags:%d" ,
631+ endpoint .IpConfigurations , endpoint .Dns , endpoint .Routes , endpoint .MacAddress , endpoint .Flags )
627632
628633 return endpoint .Id , nil
629634}
@@ -697,7 +702,7 @@ func deleteEndpointByNameHnsV2(
697702 }
698703
699704 if err = endpoint .Delete (); err != nil {
700- return fmt .Errorf ("%w: %s (%s): %w " ,
705+ return fmt .Errorf ("%w: %s (%s): %v " ,
701706 ErrDeleteEndpoint , endpoint .Name , endpoint .Id , err )
702707 }
703708
0 commit comments