jameshartig commented on code in PR #1755:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1755#discussion_r2141368807


##########
session.go:
##########
@@ -391,21 +400,20 @@ func (s *Session) reconnectDownedHosts(intv 
time.Duration) {
        for {
                select {
                case <-reconnectTicker.C:
+                       s.logger.Debug("Connecting to downed hosts if there is 
any.")
                        hosts := s.ring.allHosts()
 
                        // Print session.ring for debug.
-                       if gocqlDebug {
-                               buf := bytes.NewBufferString("Session.ring:")
-                               for _, h := range hosts {
-                                       buf.WriteString("[" + 
h.ConnectAddress().String() + ":" + h.State().String() + "]")
-                               }
-                               s.logger.Println(buf.String())
-                       }
+                       s.logger.Debug("Logging current ring state.", 
newLogFieldString("ring", ringString(hosts)))
 
                        for _, h := range hosts {
                                if h.IsUp() {
                                        continue
                                }
+                               s.logger.Info("Reconnecting to downed host.",

Review Comment:
   Also maybe debug?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to