Skip to content

Commit 2caf575

Browse files
authored
Merge pull request #52 from mixpanel/disable-ssl-debugging-log-by-default
turn off the debugging log for ssl by default
2 parents cc542b6 + d51c0d3 commit 2caf575

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

native/source/dependencies/mbedtls/library/ssl_cli.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static void ssl_write_hostname_ext( mixpanel_mbedtls_ssl_context *ssl,
6767
if( ssl->hostname == NULL )
6868
return;
6969

70-
MBEDTLS_SSL_DEBUG_MSG( 3, ( "client hello2222, adding server name extension: %s",
70+
MBEDTLS_SSL_DEBUG_MSG( 3, ( "client hello, adding server name extension: %s",
7171
ssl->hostname ) );
7272

7373
hostname_len = strlen( ssl->hostname );
@@ -805,7 +805,6 @@ static int ssl_write_client_hello( mixpanel_mbedtls_ssl_context *ssl )
805805
#endif
806806

807807
#if defined(MBEDTLS_SSL_ALPN)
808-
MBEDTLS_SSL_DEBUG_MSG( 3, ( "MBEDTLS_SSL_ALPN defined but we don't support it, please don't crash me..." ) );
809808
ssl_write_alpn_ext( ssl, p + 2 + ext_len, &olen );
810809
ext_len += olen;
811810
#endif

native/source/dependencies/nano/include/nanosocket/nanosocket.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ class MBEDTLSSocket : public Socket
383383
public:
384384
MBEDTLSSocket()
385385
{
386-
mixpanel_mbedtls_debug_set_threshold( 4 );
386+
mixpanel_mbedtls_debug_set_threshold(0);
387387
mixpanel_mbedtls_net_init( &net );
388388
mixpanel_mbedtls_ssl_init( &ssl );
389389
mixpanel_mbedtls_ssl_config_init( &conf );

0 commit comments

Comments
 (0)