summaryrefslogtreecommitdiff
path: root/tests/anonself.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/anonself.c')
-rw-r--r--tests/anonself.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/anonself.c b/tests/anonself.c
index b62ffb9445..1341a48458 100644
--- a/tests/anonself.c
+++ b/tests/anonself.c
@@ -103,7 +103,8 @@ client (void)
gnutls_global_init ();
gnutls_global_set_log_function (tls_log_func);
- gnutls_global_set_log_level (4711);
+ if (debug)
+ gnutls_global_set_log_level (4711);
gnutls_anon_allocate_client_credentials (&anoncred);
@@ -281,7 +282,8 @@ server (void)
gnutls_global_init ();
gnutls_global_set_log_function (tls_log_func);
- gnutls_global_set_log_level (4711);
+ if (debug)
+ gnutls_global_set_log_level (4711);
gnutls_anon_allocate_server_credentials (&anoncred);