From d424e4f8a9ac3f9da36acb793d4f40163a184aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Fri, 12 Jul 2024 18:44:54 +0200 Subject: [PATCH] Replace commented 'proxy_info' with 'proxy_debug' in 'read_from_net' --- lib/mysql_data_stream.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mysql_data_stream.cpp b/lib/mysql_data_stream.cpp index c1a2f17124..a45e77dc93 100644 --- a/lib/mysql_data_stream.cpp +++ b/lib/mysql_data_stream.cpp @@ -615,18 +615,18 @@ int MySQL_Data_Stream::read_from_net() { src += n2; len -= n2; if (!SSL_is_init_finished(ssl)) { - //proxy_info("SSL_is_init_finished NOT completed\n"); + proxy_debug(PROXY_DEBUG_NET, 5, "SSL handshake not finished yet session=%p bytes=%d BIO=%p len=%d\n", sess, n2, rbio_ssl, len); if (do_ssl_handshake() == SSLSTATUS_FAIL) { - //proxy_info("SSL_is_init_finished failed!!\n"); + proxy_debug(PROXY_DEBUG_NET, 5, "SSL handshake failed session=%p bytes=%d BIO=%p len=%d\n", sess, n2, rbio_ssl, len); shut_soft(); return -1; } if (!SSL_is_init_finished(ssl)) { - //proxy_info("SSL_is_init_finished yet NOT completed\n"); + proxy_debug(PROXY_DEBUG_NET, 5, "SSL handshake not finished yet session=%p bytes=%d BIO=%p len=%d\n", sess, n2, rbio_ssl, len); return 0; } } else { - //proxy_info("SSL_is_init_finished completed\n"); + proxy_debug(PROXY_DEBUG_NET, 5, "SSL handshake finished session=%p bytes=%d BIO=%p len=%d\n", sess, n2, rbio_ssl, len); } } n2 = SSL_read (ssl, queue_w_ptr(queueIN), s);