Skip to content

Commit 878bfad

Browse files
remove unnecessary logger
1 parent 1bb741a commit 878bfad

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cns/restserver/internalapi.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ func (service *HTTPRestService) ReconcileIPAssignment(podInfoByIP map[string]cns
377377
}
378378

379379
func (service *HTTPRestService) CreateNCs(ncReqs []*cns.CreateNetworkContainerRequest) types.ResponseCode {
380-
logger.Printf("Creating network containers for nc requests: [%+v]", ncReqs)
381380
for _, ncReq := range ncReqs {
382381
returnCode := service.CreateOrUpdateNetworkContainerInternal(ncReq)
383382
if returnCode != types.Success {
@@ -567,7 +566,6 @@ func (service *HTTPRestService) MustEnsureNoStaleNCs(validNCIDs []string) {
567566

568567
// This API will be called by CNS RequestController on CRD update.
569568
func (service *HTTPRestService) CreateOrUpdateNetworkContainerInternal(req *cns.CreateNetworkContainerRequest) types.ResponseCode {
570-
logger.Printf("[Azure CNS] CreateOrUpdateNetworkContainerInternal called for network container %s", req.NetworkContainerid)
571569
if req.NetworkContainerid == "" {
572570
logger.Errorf("[Azure CNS] Error. NetworkContainerid is empty")
573571
return types.NetworkContainerNotSpecified
@@ -629,9 +627,7 @@ func (service *HTTPRestService) CreateOrUpdateNetworkContainerInternal(req *cns.
629627
} else {
630628
logger.Errorf(returnMessage)
631629
}
632-
logger.Printf(("service.Options[common.OptProgramSNATIPTables]: %v"), service.Options[common.OptProgramSNATIPTables])
633630
if service.Options[common.OptProgramSNATIPTables] == true {
634-
logger.Printf("inside if block")
635631
returnCode, returnMessage = service.programSNATRules(req)
636632
if returnCode != 0 {
637633
logger.Errorf(returnMessage)

0 commit comments

Comments
 (0)