mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjusting error message printing
This commit is contained in:
parent
59ca65da3c
commit
019173b1cc
|
@ -141,7 +141,7 @@ func runMaster(cmd *Command, args []string) bool {
|
|||
log.Println("Start Weed Master", VERSION, "at port", strconv.Itoa(*mport))
|
||||
e := http.ListenAndServe(":"+strconv.Itoa(*mport), nil)
|
||||
if e != nil {
|
||||
log.Fatal("Fail to start:", e)
|
||||
log.Fatalf("Fail to start:%s", e.Error())
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
VERSION = "0.19"
|
||||
VERSION = "0.20"
|
||||
)
|
||||
|
||||
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)
|
||||
e := http.ListenAndServe(":"+strconv.Itoa(*vport), nil)
|
||||
if e != nil {
|
||||
log.Fatalf("Fail to start:", e)
|
||||
log.Fatalf("Fail to start:%s", e.Error())
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue