Skip to content

Commit e4f45c5

Browse files
g1ranaunclejack
authored andcommitted
Put some more debug info
1 parent 319ae51 commit e4f45c5

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

mgmtfn/dockplugin/ipamDriver.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,9 @@ func releaseAddress(w http.ResponseWriter, r *http.Request) {
294294
IPv4Address: areq.Address,
295295
}
296296
var releaseResp master.AddressReleaseResponse
297-
err := cluster.MasterPostReq("/plugin/releaseAddress",
298-
&releaseReq, &releaseRsp)
299-
if err != nil {
300-
httpError(w, "master failed to release request:%v address",
301-
releaseReq, err)
297+
if err = cluster.MasterPostReq("/plugin/releaseAddress",
298+
&releaseReq, &releaseResp); err != nil {
299+
httpError(w, "master failed to release request", err)
302300
return
303301
}
304302
// response

mgmtfn/dockplugin/netDriver.go

-2
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ func createEndpoint(hostname string) func(http.ResponseWriter, *http.Request) {
189189
return
190190
}
191191

192-
//log.Infof("CreateEndpointRequest: %+v. Interface: %+v", cereq, cereq.Interface)
193-
194192
tenantName, netName, serviceName, err := GetDockerNetworkName(cereq.NetworkID)
195193
if err != nil {
196194
log.Errorf("Error getting network name for UUID: %s. Err: %v", cereq.NetworkID, err)

netmaster/daemon/daemon.go

100755100644
File mode changed.

netmaster/master/network.go

100755100644
+3-1
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,11 @@ func networkReleaseAddress(nwCfg *mastercfg.CfgNetworkState, epgCfg *mastercfg.E
512512
nwCfg.EpAddrCount--
513513
}
514514
nwCfg.IPAllocMap.Clear(ipAddrValue)
515+
log.Infof("Releasing IP Address: %v"+
516+
"from networkId:%+v", ipAddrValue,
517+
nwCfg.NetworkName)
515518
}
516519
}
517-
518520
err := nwCfg.Write()
519521
if err != nil {
520522
log.Errorf("error writing nw config. Error: %s", err)

utils/httputils.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func HTTPPost(url string, req interface{}, resp interface{}) error {
131131
return err
132132
}
133133

134-
log.Infof("Results for (%s): %+v\n", url, resp)
134+
log.Debugf("Results for (%s): %+v\n", url, resp)
135135

136136
return nil
137137
}
@@ -160,6 +160,6 @@ func HTTPDel(url string) error {
160160
return fmt.Errorf("HTTP error response. Status: %s, StatusCode: %d", res.Status, res.StatusCode)
161161
}
162162

163-
log.Infof("Results for (%s): %+v\n", url, res)
163+
log.Debugf("Results for (%s): %+v\n", url, res)
164164
return nil
165165
}

0 commit comments

Comments
 (0)