aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-02 23:45:47 -0700
committerChris Lu <chris.lu@gmail.com>2021-11-02 23:45:47 -0700
commitab97b17e62503066598f9cf9ecaf4dba4ee2d6d8 (patch)
tree02ddb10bb1fe30bbe07bfb096764fd822c694aa1
parente66865a8c52f9aa4dd5aea23a365265fee2c7991 (diff)
downloadseaweedfs-ab97b17e62503066598f9cf9ecaf4dba4ee2d6d8.tar.xz
seaweedfs-ab97b17e62503066598f9cf9ecaf4dba4ee2d6d8.zip
better printout
-rw-r--r--weed/command/shell.go2
-rw-r--r--weed/shell/shell_liner.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/shell.go b/weed/command/shell.go
index 15c12f556..3ba51aec1 100644
--- a/weed/command/shell.go
+++ b/weed/command/shell.go
@@ -46,8 +46,6 @@ func runShell(command *Command, args []string) bool {
}
if cluster == "" {
*shellOptions.Masters = "localhost:9333"
- fmt.Printf("master: %s\n", *shellOptions.Masters)
-
} else {
*shellOptions.Masters = v.GetString("cluster." + cluster + ".master")
*shellInitialFiler = v.GetString("cluster." + cluster + ".filer")
diff --git a/weed/shell/shell_liner.go b/weed/shell/shell_liner.go
index 3cde1d237..fed62aba1 100644
--- a/weed/shell/shell_liner.go
+++ b/weed/shell/shell_liner.go
@@ -65,10 +65,12 @@ func RunShell(options ShellOptions) {
}
return nil
})
+ fmt.Printf("master: %s ", *options.Masters)
if len(filers) > 0 {
- fmt.Printf("filers: %v\n", filers)
+ fmt.Printf("filers: %v", filers)
commandEnv.option.FilerAddress = filers[rand.Intn(len(filers))]
}
+ fmt.Println()
}
if commandEnv.option.FilerAddress != "" {