Skip to content

Commit e01f0ad

Browse files
committed
adding logs
1 parent 8831e98 commit e01f0ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netplugin/netd.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ func processSvcProviderUpdEvent(netPlugin *plugin.NetPlugin, opts cliOpts,
710710
container start and die event*/
711711
func handleDockerEvents(event *dockerclient.Event, ec chan error, args ...interface{}) {
712712

713-
log.Printf("Received Docker event: %#v\n", *event)
713+
log.Printf("Received Docker event: {%#v}\n", *event)
714714
providerUpdReq := &master.SvcProvUpdateRequest{}
715715
switch event.Status {
716716
case "start":
@@ -755,7 +755,7 @@ func handleDockerEvents(event *dockerclient.Event, ec chan error, args ...interf
755755

756756
err := cluster.MasterPostReq("/plugin/svcProviderUpdate", providerUpdReq, &svcProvResp)
757757
if err != nil {
758-
log.Errorf("Http post Error:%s", err)
758+
log.Errorf("Event: 'start' , Http error posting service provider update, Error:%s", err)
759759
}
760760
} else {
761761
log.Errorf("Unable to fetch container labels for container %s ", event.ID)
@@ -767,7 +767,7 @@ func handleDockerEvents(event *dockerclient.Event, ec chan error, args ...interf
767767
log.Infof("Sending Provider delete request to master: {%+v}", providerUpdReq)
768768
err := cluster.MasterPostReq("/plugin/svcProviderUpdate", providerUpdReq, &svcProvResp)
769769
if err != nil {
770-
log.Errorf("Http post Error:%s", err)
770+
log.Errorf("Event:'die' Http error posting service provider update, Error:%s", err)
771771
}
772772
}
773773
}

0 commit comments

Comments
 (0)