aboutsummaryrefslogtreecommitdiff
path: root/go/topology/node.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2013-07-13 19:44:24 -0700
committerChris Lu <chris.lu@gmail.com>2013-07-13 19:44:24 -0700
commitac15868694e800657ba968da028be92a334660d4 (patch)
tree9996156fdd4dff75381d55165d415dd0302c280d /go/topology/node.go
parentae3245f1dcd9f95f5109b53306c03a0d359cf540 (diff)
downloadseaweedfs-ac15868694e800657ba968da028be92a334660d4.tar.xz
seaweedfs-ac15868694e800657ba968da028be92a334660d4.zip
clean up log fmt usage. Move to log for important data changes,
warnings.
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 d61f01244..b2414032b 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"
- "fmt"
+ "log"
)
type NodeId string
@@ -155,7 +155,7 @@ func (n *NodeImpl) LinkChildNode(node Node) {
n.UpAdjustVolumeCountDelta(node.GetVolumeCount())
n.UpAdjustActiveVolumeCountDelta(node.GetActiveVolumeCount())
node.SetParent(n)
- fmt.Println(n, "adds child", node.Id())
+ log.Println(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())
- fmt.Println(n, "removes", node, "volumeCount =", n.activeVolumeCount)
+ log.Println(n, "removes", node, "volumeCount =", n.activeVolumeCount)
}
}