]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Always have at least '-x' for '-v'
authorAlan T. DeKok <aland@freeradius.org>
Tue, 3 Nov 2015 16:58:58 +0000 (11:58 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 3 Nov 2015 17:43:23 +0000 (12:43 -0500)
So we get pretty output.  And then more -x gets more information
from -v

src/main/radiusd.c

index 1ae66ec0fcda5aefb321209ce53072f8bd92b0b3..9f190cb18be46bc1caa054179788748c725a5826 100644 (file)
@@ -310,8 +310,7 @@ int main(int argc, char *argv[])
         *  Better here, so it doesn't matter whether we get passed -xv or -vx.
         */
        if (display_version) {
-               /* Don't print timestamps */
-               rad_debug_lvl += 2;
+               if (rad_debug_lvl == 0) rad_debug_lvl = 1;
                fr_log_fp = stdout;
                default_log.dst = L_DST_STDOUT;
                default_log.fd = STDOUT_FILENO;