Reflect new debug level in man pages and comments in source.
authorLinus Nordberg <linus@nordberg.se>
Tue, 1 Jun 2010 07:58:13 +0000 (09:58 +0200)
committerLinus Nordberg <linus@nordberg.se>
Tue, 1 Jun 2010 07:58:13 +0000 (09:58 +0200)
Author: Kolbjørn Barmen <kolbjorn.barmen@uninett.no>
Date:   Tue Jun 1 09:52:17 2010 +0300

radsecproxy.1
radsecproxy.c
radsecproxy.conf.5.xml

index 7f52ef7..f1790e2 100644 (file)
@@ -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
index 9b1980b..5e50b96 100644 (file)
@@ -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':
index c3ff612..4024bde 100644 (file)
@@ -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>