debug level

Peter Balsianok balsianok.peter at gmail.com
Thu Apr 23 10:35:56 CEST 2015


Hi,

 "%{debug:} is expanded to empty string  in case of radiusd -X & radius
-xxx (version 3.0.8). Is it correct ? i expect some value.

unlang piece of code:
if ("%{debug:}" == '' {
  noop
}

Debug output from authorize section (run with -xxx option):
Thu Apr 23 10:27:24 2015 : Debug: (0)     if ("%{debug:}" == '') {
Thu Apr 23 10:27:24 2015 : Debug: (0)     EXPAND %{debug:}
Thu Apr 23 10:27:24 2015 : Debug: (0)        -->
Thu Apr 23 10:27:24 2015 : Debug: (0)     if ("%{debug:}" == '')  -> TRUE
Thu Apr 23 10:27:24 2015 : Debug: (0)     if ("%{debug:}" == '')  {
Thu Apr 23 10:27:24 2015 : Debug: (0)       modsingle[authorize]: calling
noop (rlm_always) for request 0
Thu Apr 23 10:27:24 2015 : Debug: (0)       modsingle[authorize]: returned
from noop (rlm_always) for request 0
Thu Apr 23 10:27:24 2015 : Debug: (0)       [noop] = noop
Thu Apr 23 10:27:24 2015 : Debug: (0)     } # if ("%{debug:}" == '')  = noop

Debug output from authorize section (run with -X option):
(0)     if ("%{debug:}" == '') {
(0)     EXPAND %{debug:}
(0)        -->
(0)     if ("%{debug:}" == '')  -> TRUE
(0)     if ("%{debug:}" == '')  {
(0)       [noop] = noop
(0)     } # if ("%{debug:}" == '')  = noop

Thx.


On Wed, Apr 22, 2015 at 12:37 PM, Arran Cudbard-Bell <
a.cudbardb at freeradius.org> wrote:

>
> > On 22 Apr 2015, at 10:59, Peter Balsianok <balsianok.peter at gmail.com>
> wrote:
> >
> > Hi,
> >
> > Is it possible to get current debug level in unlang ?
>
> %{debug:}
>
> Will expand to the current request debug level.
>
> >
> > Is it possible (in rlm_perl) ?
> >
> > config {
> >  debug_level = [get current debug level]
> > }
>
> No, and the debug level can change during the lifetime of the process.
>
> -Arran
>
> Arran Cudbard-Bell <a.cudbardb at freeradius.org>
> FreeRADIUS development team
>
> FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>


More information about the Freeradius-Users mailing list