aboutsummaryrefslogtreecommitdiff
path: root/go/weed/master.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2013-08-08 23:57:22 -0700
committerChris Lu <chris.lu@gmail.com>2013-08-08 23:57:22 -0700
commited154053c833f9bcce9094e535e2adc0a0397e46 (patch)
tree40dc16b76a12929bc8ac7af0549ccf65316e9011 /go/weed/master.go
parentb27947b3550dfdf091010bd2607b8c36a5dca049 (diff)
downloadseaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.tar.xz
seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.zip
switching to temporarily use glog library
Diffstat (limited to 'go/weed/master.go')
-rw-r--r--go/weed/master.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/go/weed/master.go b/go/weed/master.go
index ee8f7c6a7..ccf186fac 100644
--- a/go/weed/master.go
+++ b/go/weed/master.go
@@ -8,7 +8,7 @@ import (
"code.google.com/p/weed-fs/go/topology"
"encoding/json"
"errors"
- "log"
+ "code.google.com/p/weed-fs/go/glog"
"net/http"
"runtime"
"strconv"
@@ -205,10 +205,10 @@ func runMaster(cmd *Command, args []string) bool {
var e error
if topo, e = topology.NewTopology("topo", *confFile, *metaFolder, "weed",
uint64(*volumeSizeLimitMB)*1024*1024, *mpulse); e != nil {
- log.Fatalf("cannot create topology:%s", e)
+ glog.Fatalf("cannot create topology:%s", e)
}
vg = replication.NewDefaultVolumeGrowth()
- log.Println("Volume Size Limit is", *volumeSizeLimitMB, "MB")
+ glog.V(0).Infoln("Volume Size Limit is", *volumeSizeLimitMB, "MB")
http.HandleFunc("/dir/assign", dirAssignHandler)
http.HandleFunc("/dir/lookup", dirLookupHandler)
http.HandleFunc("/dir/join", dirJoinHandler)
@@ -222,7 +222,7 @@ func runMaster(cmd *Command, args []string) bool {
topo.StartRefreshWritableVolumes(*garbageThreshold)
- log.Println("Start Weed Master", VERSION, "at port", strconv.Itoa(*mport))
+ glog.V(0).Infoln("Start Weed Master", VERSION, "at port", strconv.Itoa(*mport))
srv := &http.Server{
Addr: ":" + strconv.Itoa(*mport),
Handler: http.DefaultServeMux,
@@ -230,7 +230,7 @@ func runMaster(cmd *Command, args []string) bool {
}
e = srv.ListenAndServe()
if e != nil {
- log.Fatalf("Fail to start:%s", e)
+ glog.Fatalf("Fail to start:%s", e)
}
return true
}