bcrypt: Allow overriding GnuTLS debug level.

This commit is contained in:
Daniel Lehman 2024-05-20 20:23:17 -07:00 committed by Alexandre Julliard
parent 34a57da592
commit 24a956e6cb

View file

@ -466,7 +466,9 @@ static NTSTATUS gnutls_process_attach( void *args )
if (TRACE_ON( bcrypt )) if (TRACE_ON( bcrypt ))
{ {
pgnutls_global_set_log_level( 4 ); char *env = getenv("GNUTLS_DEBUG_LEVEL");
int level = env ? atoi(env) : 4;
pgnutls_global_set_log_level(level);
pgnutls_global_set_log_function( gnutls_log ); pgnutls_global_set_log_function( gnutls_log );
} }