1
0
mirror of https://github.com/docker/cli.git synced 2026-01-23 15:21:32 +03:00

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

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

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
}