Separated logging level from debug-ability

Modified code to separate logging level from the debug-ability. Added new command line option -x or --traceable to control the pr_dumpable state (default is pr_dumpable false) Added config parameter for controlling the log-level the option is "log-level" it can also be specified on the commandline with -d or --debug.

Signed-off-by: Russell Young <ruyoung@microsoft.com>
This commit is contained in:
Russell Young
2021-05-18 18:38:49 +00:00
committed by Nikos Mavrogiannopoulos
parent 797d6f75d0
commit 658ffb47df
4 changed files with 26 additions and 3 deletions
+12
View File
@@ -434,6 +434,18 @@ use-occtl = true
# PID file. It can be overridden in the command line.
pid-file = /var/run/ocserv.pid
# Log Level. It can be overridden in the command line with the -d option.
# All messages at the configure level and lower will be displayed.
# Supported levels (default 0)
# 0 default (Same as basic)
# 1 basic
# 2 info
# 3 debug
# 4 http
# 8 sensitive
# 9 TLS
log-level = 1
# Set the protocol-defined priority (SO_PRIORITY) for packets to
# be sent. That is a number from 0 to 6 with 0 being the lowest
# priority. Alternatively this can be used to set the IP Type-