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:
commit
c009b7935e
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ func (sr *swarmRouter) createService(ctx context.Context, w http.ResponseWriter,
|
||||||
|
|
||||||
id, err := sr.backend.CreateService(service, encodedAuth)
|
id, err := sr.backend.CreateService(service, encodedAuth)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Errorf("Error creating service %s: %v", id, err)
|
logrus.Errorf("Error creating service %s: %v", service.Name, err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue