瀏覽代碼

Added some debug statements

Ben Hood 11 年之前
父節點
當前提交
4474ab668a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      connectionpool.go

+ 3 - 0
connectionpool.go

@@ -342,6 +342,9 @@ func (c *SimplePool) Close() {
 }
 
 func (c *SimplePool) SetHosts(hosts []HostInfo) {
+
+	fmt.Printf("Setting hosts: %+v\n", hosts)
+
 	c.hostMu.Lock()
 	toRemove := make(map[string]struct{})
 	for k := range c.hosts {