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


##########
control.go:
##########
@@ -380,20 +407,25 @@ func (c *controlConn) reconnect() {
        }
        defer atomic.StoreInt32(&c.reconnecting, 0)
 
-       conn, err := c.attemptReconnect()
+       _, err := c.attemptReconnect()
 
-       if conn == nil {
-               c.session.logger.Printf("gocql: unable to reconnect control 
connection: %v\n", err)
+       if err != nil {
+               c.session.logger.Error("Unable to reconnect control 
connection.",
+                       newLogFieldError("err", err))
                return
        }
 
        err = c.session.refreshRing()
        if err != nil {
-               c.session.logger.Printf("gocql: unable to refresh ring: %v\n", 
err)
+               c.session.logger.Warning("Unable to refresh ring.",
+                       newLogFieldError("err", err))
        }
 }
 
 func (c *controlConn) attemptReconnect() (*Conn, error) {
+
+       c.session.logger.Info("Reconnecting the control connection.")

Review Comment:
   This seems like 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