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:39 +01:00
parent 1eab85479c
commit be332174f8
7 changed files with 33 additions and 36 deletions
+1 -7
View File
@@ -551,14 +551,8 @@ int cmd_parser (int argc, char **argv, struct cfg_st* config)
if (HAVE_OPT(PID_FILE))
pid_file = OPT_ARG(PID_FILE);
if (HAVE_OPT(TLS_DEBUG))
config->tls_debug = 1;
if (HAVE_OPT(HTTP_DEBUG))
config->http_debug = 1;
if (HAVE_OPT(DEBUG))
config->debug = 1;
config->debug = OPT_VALUE_DEBUG;
if (HAVE_OPT(CONFIG)) {
cfg_file = OPT_ARG(CONFIG);