aboutsummaryrefslogtreecommitdiff
path: root/go/replication/volume_growth.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/replication/volume_growth.go
parentb27947b3550dfdf091010bd2607b8c36a5dca049 (diff)
downloadseaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.tar.xz
seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.zip
switching to temporarily use glog library
Diffstat (limited to 'go/replication/volume_growth.go')
-rw-r--r--go/replication/volume_growth.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/go/replication/volume_growth.go b/go/replication/volume_growth.go
index d5950790d..759eb19a7 100644
--- a/go/replication/volume_growth.go
+++ b/go/replication/volume_growth.go
@@ -6,7 +6,7 @@ import (
"code.google.com/p/weed-fs/go/topology"
"errors"
"fmt"
- "log"
+ "code.google.com/p/weed-fs/go/glog"
"math/rand"
"sync"
)
@@ -204,9 +204,9 @@ func (vg *VolumeGrowth) grow(topo *topology.Topology, vid storage.VolumeId, repT
vi := storage.VolumeInfo{Id: vid, Size: 0, RepType: repType, Version: storage.CurrentVersion}
server.AddOrUpdateVolume(vi)
topo.RegisterVolumeLayout(&vi, server)
- log.Println("Created Volume", vid, "on", server)
+ glog.V(0).Infoln("Created Volume", vid, "on", server)
} else {
- log.Println("Failed to assign", vid, "to", servers, "error", err)
+ glog.V(0).Infoln("Failed to assign", vid, "to", servers, "error", err)
return errors.New("Failed to assign " + vid.String())
}
}