소스 검색

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 {