Browse Source

adjusting error message printing

pull/2/head
Chris Lu 12 years ago
parent
commit
019173b1cc
  1. 2
      weed-fs/src/cmd/weed/master.go
  2. 2
      weed-fs/src/cmd/weed/version.go
  3. 2
      weed-fs/src/cmd/weed/volume.go

2
weed-fs/src/cmd/weed/master.go

@ -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
} }

2
weed-fs/src/cmd/weed/version.go

@ -6,7 +6,7 @@ import (
) )
const ( const (
VERSION = "0.19"
VERSION = "0.20"
) )
var cmdVersion = &Command{ var cmdVersion = &Command{

2
weed-fs/src/cmd/weed/volume.go

@ -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
} }
Loading…
Cancel
Save