1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #26667 from allencloud/display-no-id-when-service-creation-fails

display service name in log when service creating fails
This commit is contained in:
Aaron Lehmann 2016-09-26 10:56:35 +01:00 committed by GitHub
commit c009b7935e

View file

@ -132,7 +132,7 @@ func (sr *swarmRouter) createService(ctx context.Context, w http.ResponseWriter,
id, err := sr.backend.CreateService(service, encodedAuth)
if err != nil {
logrus.Errorf("Error creating service %s: %v", id, err)
logrus.Errorf("Error creating service %s: %v", service.Name, err)
return err
}