aboutsummaryrefslogtreecommitdiff
path: root/go/topology/node.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/topology/node.go
parentb27947b3550dfdf091010bd2607b8c36a5dca049 (diff)
downloadseaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.tar.xz
seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.zip
switching to temporarily use glog library
Diffstat (limited to 'go/topology/node.go')
-rw-r--r--go/topology/node.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/go/topology/node.go b/go/topology/node.go
index b2414032b..c8ff55f07 100644
--- a/go/topology/node.go
+++ b/go/topology/node.go
@@ -2,7 +2,7 @@ package topology
import (
"code.google.com/p/weed-fs/go/storage"
- "log"
+ "code.google.com/p/weed-fs/go/glog"
)
type NodeId string
@@ -155,7 +155,7 @@ func (n *NodeImpl) LinkChildNode(node Node) {
n.UpAdjustVolumeCountDelta(node.GetVolumeCount())
n.UpAdjustActiveVolumeCountDelta(node.GetActiveVolumeCount())
node.SetParent(n)
- log.Println(n, "adds child", node.Id())
+ glog.V(0).Infoln(n, "adds child", node.Id())
}
}
@@ -167,7 +167,7 @@ func (n *NodeImpl) UnlinkChildNode(nodeId NodeId) {
n.UpAdjustVolumeCountDelta(-node.GetVolumeCount())
n.UpAdjustActiveVolumeCountDelta(-node.GetActiveVolumeCount())
n.UpAdjustMaxVolumeCountDelta(-node.GetMaxVolumeCount())
- log.Println(n, "removes", node, "volumeCount =", n.activeVolumeCount)
+ glog.V(0).Infoln(n, "removes", node, "volumeCount =", n.activeVolumeCount)
}
}