@@ -710,7 +710,7 @@ func processSvcProviderUpdEvent(netPlugin *plugin.NetPlugin, opts cliOpts,
710
710
container start and die event*/
711
711
func handleDockerEvents (event * dockerclient.Event , ec chan error , args ... interface {}) {
712
712
713
- log .Printf ("Received Docker event: %#v\n " , * event )
713
+ log .Printf ("Received Docker event: { %#v} \n " , * event )
714
714
providerUpdReq := & master.SvcProvUpdateRequest {}
715
715
switch event .Status {
716
716
case "start" :
@@ -755,7 +755,7 @@ func handleDockerEvents(event *dockerclient.Event, ec chan error, args ...interf
755
755
756
756
err := cluster .MasterPostReq ("/plugin/svcProviderUpdate" , providerUpdReq , & svcProvResp )
757
757
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 )
759
759
}
760
760
} else {
761
761
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
767
767
log .Infof ("Sending Provider delete request to master: {%+v}" , providerUpdReq )
768
768
err := cluster .MasterPostReq ("/plugin/svcProviderUpdate" , providerUpdReq , & svcProvResp )
769
769
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 )
771
771
}
772
772
}
773
773
}
0 commit comments