Merge pull request #8661 from dgarske/debug_on

Fix debug logs (disabled in PR #8616)
This commit is contained in:
Eric Blankenhorn
2025-04-11 13:21:34 -05:00
committed by GitHub

View File

@ -158,7 +158,7 @@ wolfSSL_Logging_cb wolfSSL_GetLoggingCb(void)
int wolfSSL_Debugging_ON(void) int wolfSSL_Debugging_ON(void)
{ {
#ifdef DEBUG_WOLFSSL #ifdef DEBUG_WOLFSSL
loggingEnabled = 0; loggingEnabled = 1;
#if defined(WOLFSSL_APACHE_MYNEWT) #if defined(WOLFSSL_APACHE_MYNEWT)
log_register("wolfcrypt", &mynewt_log, &log_console_handler, NULL, LOG_SYSLEVEL); log_register("wolfcrypt", &mynewt_log, &log_console_handler, NULL, LOG_SYSLEVEL);
#endif /* WOLFSSL_APACHE_MYNEWT */ #endif /* WOLFSSL_APACHE_MYNEWT */