Skip to content

Commit 54feed2

Browse files
committed
extmod/modussl_mbedtls.c: More sensible default debug log level.
1 parent 15021cc commit 54feed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extmod/modussl_mbedtls.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ STATIC const mp_obj_type_t ussl_socket_type;
7474
STATIC void mbedtls_debug(void *ctx, int level, const char *file, int line, const char *str) {
7575
(void)ctx;
7676
(void)level;
77-
printf("DBG:%s:%04d: %s\n", file, line, str);
77+
mp_printf(&mp_plat_print, "DBG:%s:%04d: %s\n", file, line, str);
7878
}
7979
#endif
8080

@@ -175,7 +175,7 @@ STATIC mp_obj_ssl_socket_t *socket_new(mp_obj_t sock, struct ssl_args *args) {
175175
mbedtls_ctr_drbg_init(&o->ctr_drbg);
176176
#ifdef MBEDTLS_DEBUG_C
177177
// Debug level (0-4) 1=warning, 2=info, 3=debug, 4=verbose
178-
mbedtls_debug_set_threshold(0);
178+
mbedtls_debug_set_threshold(3);
179179
#endif
180180

181181
mbedtls_entropy_init(&o->entropy);

0 commit comments

Comments
 (0)