From e2ca6ba654f1371f3b375392e29e3fa070ad96ce Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期四, 16 四月 2020 15:25:48 +0800
Subject: [PATCH] fix startup item

---
 controllers/swfsControllers.go |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/controllers/swfsControllers.go b/controllers/swfsControllers.go
index c479112..8f3fb76 100644
--- a/controllers/swfsControllers.go
+++ b/controllers/swfsControllers.go
@@ -167,6 +167,7 @@
 	if httpRes.StatusCode == 200 {
 		startupItem = string(body)
 	}
+	fmt.Println("Restart startupItem: ", startupItem)
 	tick := time.Tick(1 * time.Second)
 	fmt.Println("鍑嗗寮�濮嬮獙璇佽妭鐐规湇鍔�")
 	for countdown := timeOut; countdown > 0; countdown-- {
@@ -184,6 +185,7 @@
 //楠岃瘉鏈嶅姟鐘舵��
 func Verification(startupItem string, ip string) bool {
 	resStatu := false
+	fmt.Println("Verification startupItem: ", startupItem)
 	switch startupItem {
 	case StartScriptAsVolume:
 		verificationVolumeUrl := "http://" + ip + ":6700/ui/index.html"
@@ -201,7 +203,9 @@
 		verificationMasterUrl := "http://" + ip + ":6333"
 		verificationVolumeUrl := "http://" + ip + ":6700/ui/index.html"
 		_, masterErr := http.Get(verificationMasterUrl)
+		fmt.Println("masterErr", masterErr)
 		_, volume1Err := http.Get(verificationVolumeUrl)
+		fmt.Println("volume1Err", volume1Err)
 		if masterErr == nil && volume1Err == nil {
 			resStatu = true
 		}

--
Gitblit v1.8.0