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/weed/export.go | |
| parent | b27947b3550dfdf091010bd2607b8c36a5dca049 (diff) | |
| download | seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.tar.xz seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.zip | |
switching to temporarily use glog library
Diffstat (limited to 'go/weed/export.go')
| -rw-r--r-- | go/weed/export.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/go/weed/export.go b/go/weed/export.go index 08d2cd2b9..23c0baf60 100644 --- a/go/weed/export.go +++ b/go/weed/export.go @@ -5,7 +5,7 @@ import ( "bytes" "code.google.com/p/weed-fs/go/storage" "fmt" - "log" + "code.google.com/p/weed-fs/go/glog" "os" "path" "strconv" @@ -67,7 +67,7 @@ func runExport(cmd *Command, args []string) bool { fh = os.Stdout } else { if fh, err = os.Create(*dest); err != nil { - log.Fatalf("cannot open output tar %s: %s", *dest, err) + glog.Fatalf("cannot open output tar %s: %s", *dest, err) } } defer fh.Close() @@ -84,13 +84,13 @@ func runExport(cmd *Command, args []string) bool { vid := storage.VolumeId(*exportVolumeId) indexFile, err := os.OpenFile(path.Join(*exportVolumePath, fileName+".idx"), os.O_RDONLY, 0644) if err != nil { - log.Fatalf("Create Volume Index [ERROR] %s\n", err) + glog.Fatalf("Create Volume Index [ERROR] %s\n", err) } defer indexFile.Close() nm, err := storage.LoadNeedleMap(indexFile) if err != nil { - log.Fatalf("cannot load needle map from %s: %s", indexFile, err) + glog.Fatalf("cannot load needle map from %s: %s", indexFile, err) } var version storage.Version @@ -113,7 +113,7 @@ func runExport(cmd *Command, args []string) bool { return nil }) if err != nil { - log.Fatalf("Export Volume File [ERROR] %s\n", err) + glog.Fatalf("Export Volume File [ERROR] %s\n", err) } return true } |
