From: Alan T. DeKok Date: Tue, 3 Nov 2015 16:58:58 +0000 (-0500) Subject: Always have at least '-x' for '-v' X-Git-Tag: release_3_0_11~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c425139a8e8a5d487cce8418da2b1047da8bf679;p=thirdparty%2Ffreeradius-server.git Always have at least '-x' for '-v' So we get pretty output. And then more -x gets more information from -v --- diff --git a/src/main/radiusd.c b/src/main/radiusd.c index 1ae66ec0fcd..9f190cb18be 100644 --- a/src/main/radiusd.c +++ b/src/main/radiusd.c @@ -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;