From ba1e2c442a3b71ccdf79f03c7404d706f5c44c04 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期三, 15 一月 2020 14:28:13 +0800 Subject: [PATCH] debug --- app/master/master.go | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/master/master.go b/app/master/master.go index 728e3ca..c4107e9 100644 --- a/app/master/master.go +++ b/app/master/master.go @@ -30,12 +30,20 @@ fetcher.fnInitDBAPI(util.FSI.IP, util.FSI.HTTPort, util.FSI.HBPort, util.FSI.DataPort, logo.Infoln) // fetcher.fnInitDBAPI("192.168.20.10", util.FSI.HTTPort, util.FSI.HBPort, util.FSI.DataPort, logo.Infoln) sdks := fetcher.fnSDKInfo() - + for { + if len(sdks) == 0 { + logo.Errorln("!!!!!!Fetcher Can't Get SDK Infos From Remote DB") + continue + } + break + } return manualStart(ctx, sdks, configPath) } func manualStart(ctx context.Context, sdks []sdkstruct.SDKInfo, configPath string) bool { rPath := configPath + + params := app.GetParams() for _, v := range sdks { @@ -59,7 +67,7 @@ "-" + util.ConfigPath + "=" + file, } - args = append(args, app.GetParams(util.ConfigPath, file)...) + args = append(args, params...) pid, err := runProc(ctx, "./analysis", args, cfg.Env) if err != nil { -- Gitblit v1.8.0