From b96090f9bdbb613388e0f0afac1dfd060cabd337 Mon Sep 17 00:00:00 2001 From: bay1ts Date: Wed, 22 Nov 2017 16:36:54 +0800 Subject: [PATCH] [REV] remove return --- pkg/api/controller/serviceAction.go | 2 +- pkg/grctl/cmd/init.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/api/controller/serviceAction.go b/pkg/api/controller/serviceAction.go index 56ca4e5eb..0bb67f662 100644 --- a/pkg/api/controller/serviceAction.go +++ b/pkg/api/controller/serviceAction.go @@ -176,7 +176,7 @@ func checkEventTimeOut(event *dbmodel.ServiceEvent) (bool, error) { func handleStatus(status int, err error, w http.ResponseWriter, r *http.Request) { if status != 0 { - logrus.Error("应用启动任务发送失败 "+err.Error(), map[string]string{"step": "callback", "status": "failure"}) + //logrus.Error("应用启动任务发送失败 "+err.Error(), map[string]string{"step": "callback", "status": "failure"}) if status == 2 { httputil.ReturnError(r, w, 400, "last event unfinish.") return diff --git a/pkg/grctl/cmd/init.go b/pkg/grctl/cmd/init.go index 5c50337eb..22514746f 100644 --- a/pkg/grctl/cmd/init.go +++ b/pkg/grctl/cmd/init.go @@ -53,7 +53,6 @@ func NewCmdInit() cli.Command { }, Usage: "初始化集群。grctl init cluster", Action: func(c *cli.Context) error { - Common(c) return initCluster(c) }, }