summaryrefslogtreecommitdiff
path: root/tests/anonself.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-06-07 16:33:40 +0200
committerSimon Josefsson <simon@josefsson.org>2008-06-07 16:33:40 +0200
commitf1cccbd6f79f903b2b0740ca35343ea1a74bb66d (patch)
treee2d287822a9e5f2e110f4ab67d1c872518a61ce4 /tests/anonself.c
parent71af07d3dd6315cb3748e741a82ebfd764f284e7 (diff)
downloadgnutls-f1cccbd6f79f903b2b0740ca35343ea1a74bb66d.tar.gz
tests/: Reduce amount of debugging output.
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);