diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index 1dfc86ccc..71477c5be 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -1094,7 +1094,7 @@ handler_again: if (myerr > 2000) { bool retry_conn=false; // client error, serious - proxy_error("Detected a broken connection during query on (%d,%s,%d) : %d, %s\n", myconn->parent->myhgc->hid, myconn->parent->address, myconn->parent->port, myerr, mysql_error(myconn->mysql)); + proxy_error("Detected a broken connection during query on (%d,%s,%d) , FD (Conn:%d , MyDS:%d) : %d, %s\n", myconn->parent->myhgc->hid, myconn->parent->address, myconn->parent->port, myds->fd, myds->myconn->fd, myerr, mysql_error(myconn->mysql)); //if ((myds->myconn->reusable==true) && ((myds->myprot.prot_status & SERVER_STATUS_IN_TRANS)==0)) { if (myds->query_retries_on_failure > 0) { myds->query_retries_on_failure--; diff --git a/lib/mysql_connection.cpp b/lib/mysql_connection.cpp index 30ac14d41..fbcdfd900 100644 --- a/lib/mysql_connection.cpp +++ b/lib/mysql_connection.cpp @@ -458,7 +458,7 @@ handler_again: case ASYNC_CONNECT_END: if (!ret_mysql) { // always increase the counter - proxy_error("Failed to mysql_real_connect() on %s:%d , %d: %s\n", parent->address, parent->port, mysql_errno(mysql), mysql_error(mysql)); + proxy_error("Failed to mysql_real_connect() on %s:%d , FD (Conn:%d , MyDS:%d) , %d: %s.\n", parent->address, parent->port, mysql->net.fd , myds->fd, mysql_errno(mysql), mysql_error(mysql)); NEXT_IMMEDIATE(ASYNC_CONNECT_FAILED); } else { NEXT_IMMEDIATE(ASYNC_CONNECT_SUCCESSFUL);