switching to temporarily use glog library
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user