From: Daniel Lehman dlehman25@gmail.com
--- dlls/bcrypt/gnutls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/bcrypt/gnutls.c b/dlls/bcrypt/gnutls.c index 18ef70a7722..582b868a36e 100644 --- a/dlls/bcrypt/gnutls.c +++ b/dlls/bcrypt/gnutls.c @@ -466,7 +466,9 @@ static NTSTATUS gnutls_process_attach( void *args )
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 ); }