File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -630,8 +630,7 @@ func (service *HTTPRestService) CreateOrUpdateNetworkContainerInternal(req *cns.
630630 if ok {
631631 existingReq := existingNCInfo .CreateNetworkContainerRequest
632632 if ! reflect .DeepEqual (existingReq .IPConfiguration .IPSubnet , req .IPConfiguration .IPSubnet ) {
633-
634- logger .Debugf ("Updating PrimaryCA for NCId %s" , req .NetworkContainerid )
633+ service .Logger .Debug ("subnet address pod cidr has changed for NCId " + req .NetworkContainerid )
635634
636635 // Update the in-memory state
637636 service .Lock ()
@@ -642,11 +641,11 @@ func (service *HTTPRestService) CreateOrUpdateNetworkContainerInternal(req *cns.
642641
643642 // Persist the updated state to disk
644643 if err := service .saveState (); err != nil {
645- logger . Errorf ("Failed to save updated CNS state: %v" , err )
644+ service . Logger . Error ("Failed to save updated CNS state: " + err . Error () )
646645 return types .UnexpectedError
647646 }
648647
649- logger . Debugf ("Successfully updated PrimaryCA and saved CNS state" )
648+ service . Logger . Debug ("Successfully updated subnet address pod cidr and saved CNS state" )
650649 }
651650 }
652651
You can’t perform that action at this time.
0 commit comments