mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 03:59:56 +08:00
adjusting error message printing
This commit is contained in:
@@ -141,7 +141,7 @@ func runMaster(cmd *Command, args []string) bool {
|
|||||||
log.Println("Start Weed Master", VERSION, "at port", strconv.Itoa(*mport))
|
log.Println("Start Weed Master", VERSION, "at port", strconv.Itoa(*mport))
|
||||||
e := http.ListenAndServe(":"+strconv.Itoa(*mport), nil)
|
e := http.ListenAndServe(":"+strconv.Itoa(*mport), nil)
|
||||||
if e != nil {
|
if e != nil {
|
||||||
log.Fatal("Fail to start:", e)
|
log.Fatalf("Fail to start:%s", e.Error())
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VERSION = "0.19"
|
VERSION = "0.20"
|
||||||
)
|
)
|
||||||
|
|
||||||
var cmdVersion = &Command{
|
var cmdVersion = &Command{
|
||||||
|
@@ -245,7 +245,7 @@ func runVolume(cmd *Command, args []string) bool {
|
|||||||
log.Println("Start storage service at http://127.0.0.1:"+strconv.Itoa(*vport), "public url", *publicUrl)
|
log.Println("Start storage service at http://127.0.0.1:"+strconv.Itoa(*vport), "public url", *publicUrl)
|
||||||
e := http.ListenAndServe(":"+strconv.Itoa(*vport), nil)
|
e := http.ListenAndServe(":"+strconv.Itoa(*vport), nil)
|
||||||
if e != nil {
|
if e != nil {
|
||||||
log.Fatalf("Fail to start:", e)
|
log.Fatalf("Fail to start:%s", e.Error())
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user