mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
display no id in log when service creating fails
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
8eadd439c6
commit
6ae8c83ebe
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)
|
||||
if err != nil {
|
||||
logrus.Errorf("Error creating service %s: %v", id, err)
|
||||
logrus.Errorf("Error creating service %s: %v", service.Name, err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue