Merge branch 'feature/config_option_for_mbedtls_debug_level' into 'master'

mbedtls: add config option for setting debug level

See merge request idf/esp-idf!5154
This commit is contained in:
Mahavir Jain
2019-06-10 11:44:40 +08:00
3 changed files with 27 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ static void https_get_task(void *pvParameters)
mbedtls_ssl_conf_ca_chain(&conf, &cacert, NULL);
mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg);
#ifdef CONFIG_MBEDTLS_DEBUG
mbedtls_esp_enable_debug_log(&conf, 4);
mbedtls_esp_enable_debug_log(&conf, CONFIG_MBEDTLS_DEBUG_LEVEL);
#endif
if ((ret = mbedtls_ssl_setup(&ssl, &conf)) != 0)