summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2010-06-01 09:58:13 +0200
committerLinus Nordberg <linus@nordberg.se>2010-06-01 09:58:13 +0200
commit205865cfc023decf9e8b917dd2224ae4ee85423c (patch)
tree31b71a7af568a8c3431448ce87ab30f18d896258
parentd8db1dfb8a627bef2c0fe80cc9947eb867ef3fc9 (diff)
Reflect new debug level in man pages and comments in source.
Author: Kolbjørn Barmen <kolbjorn.barmen@uninett.no> Date: Tue Jun 1 09:52:17 2010 +0300
-rw-r--r--radsecproxy.14
-rw-r--r--radsecproxy.c4
-rw-r--r--radsecproxy.conf.5.xml4
3 files changed, 6 insertions, 6 deletions
diff --git a/radsecproxy.1 b/radsecproxy.1
index 7f52ef7..f1790e2 100644
--- a/radsecproxy.1
+++ b/radsecproxy.1
@@ -46,8 +46,8 @@ is, it won't detach. Also all logging will be done to stderr.
.sp
\fIDebug level\fR
.sp
-This specifies the debug level. It must be set to 1, 2, 3 or 4, where 1
-logs only serious errors, and 4 logs everything. The default is 2 which
+This specifies the debug level. It must be set to 1, 2, 3, 4 or 5, where
+1 logs only serious errors, and 5 logs everything. The default is 2 which
logs errors, warnings and a few informational messages.
.TP
diff --git a/radsecproxy.c b/radsecproxy.c
index 9b1980b..5e50b96 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -3062,7 +3062,7 @@ void getmainconfig(const char *configfile) {
if (loglevel != LONG_MIN) {
if (loglevel < 1 || loglevel > 4)
- debugx(1, DBG_ERR, "error in %s, value of option LogLevel is %d, must be 1, 2, 3 or 4", configfile, loglevel);
+ debugx(1, DBG_ERR, "error in %s, value of option LogLevel is %d, must be 1, 2, 3, 4 or 5", configfile, loglevel);
options.loglevel = (uint8_t)loglevel;
}
if (addttl != LONG_MIN) {
@@ -3088,7 +3088,7 @@ void getargs(int argc, char **argv, uint8_t *foreground, uint8_t *pretend, uint8
break;
case 'd':
if (strlen(optarg) != 1 || *optarg < '1' || *optarg > '4')
- debugx(1, DBG_ERR, "Debug level must be 1, 2, 3 or 4, not %s", optarg);
+ debugx(1, DBG_ERR, "Debug level must be 1, 2, 3, 4 or 5, not %s", optarg);
*loglevel = *optarg - '0';
break;
case 'f':
diff --git a/radsecproxy.conf.5.xml b/radsecproxy.conf.5.xml
index c3ff612..4024bde 100644
--- a/radsecproxy.conf.5.xml
+++ b/radsecproxy.conf.5.xml
@@ -128,8 +128,8 @@ occurences is undefined.
<term><literal>logLevel</literal></term>
<listitem>
<para>
-This option specifies the debug level. It must be set to 1, 2, 3 or 4, where 1
-logs only serious errors, and 4 logs everything. The default is 2 which logs
+This option specifies the debug level. It must be set to 1, 2, 3, 4 or 5, where
+1 logs only serious errors, and 5 logs everything. The default is 2 which logs
errors, warnings and a few informational messages. Note that the command line
option <option>-d</option> overrides this.
</para>