default linelog Accounting-Request handling broken?
Josip Rodin
joy at entuzijast.net
Sun Dec 6 20:15:55 CET 2009
On Sun, Dec 06, 2009 at 07:43:49PM +0100, Alan DeKok wrote:
> Josip Rodin wrote:
> > Speaking of which, while browsing 558c51a711d7a326604eda0fc51040cbda2b77a8
> > I just noticed that it would be good for these error messages be elevated
> > so that users can see them outside of debug mode. Specifically:
> >
> > RDEBUG2("Badly formatted variable: %s", *from);
> > RDEBUG2("Badly formatted variable: %s", p);
> > RDEBUG2("No trailing :- after variable at %s", p);
> > RDEBUG2("Invalid text after :- at %s", p);
> >
> > Those should be error log, while:
> >
> > RDEBUG2("Improperly nested variable; %%{%s}", p);
> > RDEBUG2("WARNING: Deprecated conditional expansion \":-\". See \"man unlang\" for details");
> > RDEBUG2("WARNING: Unknown module \"%s\" in string expansion \"%%%s\"", xlat_name, *from);
> >
> > Those looks like info messages.
>
> Are you sure you want these messages for *every* packet? Wouldn't it
> be better to warn about mis-configurations in debug mode only?
People should want to know as soon as possible if their configuration is
has syntax errors - it's likely that the same issue can have bad effects
on the functionality they want.
Thinking about it, people on high-traffic sites might get bothered with
extra logs and extra disk space usage. But, those are the same kind of
people who will not use debug mode because of its disk space issues.
--
2. That which causes joy or happiness.
More information about the Freeradius-Users
mailing list