Explorar el Código

Added some debug statements

Ben Hood hace 11 años
padre
commit
4474ab668a
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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 {