diff options
| author | Chris Lu <chris.lu@gmail.com> | 2013-08-08 23:57:22 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2013-08-08 23:57:22 -0700 |
| commit | ed154053c833f9bcce9094e535e2adc0a0397e46 (patch) | |
| tree | 40dc16b76a12929bc8ac7af0549ccf65316e9011 /go/util/config.go | |
| parent | b27947b3550dfdf091010bd2607b8c36a5dca049 (diff) | |
| download | seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.tar.xz seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.zip | |
switching to temporarily use glog library
Diffstat (limited to 'go/util/config.go')
| -rw-r--r-- | go/util/config.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/go/util/config.go b/go/util/config.go index 6ac8a3a65..43c5027e1 100644 --- a/go/util/config.go +++ b/go/util/config.go @@ -11,7 +11,7 @@ package util import ( "bytes" "encoding/json" - "log" + "code.google.com/p/weed-fs/go/glog" "os" ) @@ -32,7 +32,7 @@ func LoadConfig(filename string) *Config { result.filename = filename err := result.parse() if err != nil { - log.Fatalf("error loading config file %s: %s", filename, err) + glog.Fatalf("error loading config file %s: %s", filename, err) } return result } @@ -42,7 +42,7 @@ func LoadConfigString(s string) *Config { result := newConfig() err := json.Unmarshal([]byte(s), &result.data) if err != nil { - log.Fatalf("error parsing config string %s: %s", s, err) + glog.Fatalf("error parsing config string %s: %s", s, err) } return result } |
