display no id in log when service creating fails
Signed-off-by: allencloud <allen.sun@daocloud.io> Upstream-commit: 6ae8c83ebe253104e9471aaa6e80c5acf24b1d9e Component: engine
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user