Simplified debugging by allowing multiple levels.

'ocserv -d' now accepts a numeric option from 0 (no debugging) to 9
(maximum verbosity).
This commit is contained in:
Nikos Mavrogiannopoulos
2014-02-17 20:19:37 +01:00
parent 1eab85479c
commit be332174f8
7 changed files with 33 additions and 36 deletions

View File

@@ -557,7 +557,7 @@ const char* perr;
char *tmp;
unsigned len;
if (s->config->tls_debug) {
if (s->config->debug >= DEBUG_TLS) {
gnutls_global_set_log_function(tls_log_func);
gnutls_global_set_log_level(9);
}