mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
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:
+1
-7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user