[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: Log auth message
From:       Arran Cudbard-Bell <a.cudbardb () freeradius ! org>
Date:       2013-06-21 9:25:45
Message-ID: BD724067-15F5-4053-A9B0-B7C651677822 () freeradius ! org
[Download RAW message or body]


On 21 Jun 2013, at 10:03, A.L.M.Buxey@lboro.ac.uk wrote:

> Hi,
> 
> > I`m not able to debug, what does macro RAUTH do :(. Coudl you please help me, \
> > thx.
> 
> ah. just noticed this is actually with 3.x - yes, the older releases logged but \
> current version doesnt. I'll have to help you out with this as I need logging on \
> that platform :-)

OP was right in that the logging function isn't set and that that's the issue.

radlog_request was originally only used for debugging, and then we expanded it to all \
log message types.

It's nicer because it looks at the request structure to figure out things like the \
current module, and prefixes the log message appropriately.

Anyway.

ndex 74c2d33..cb11ae3 100644
--- a/src/main/util.c
+++ b/src/main/util.c
@@ -462,7 +462,7 @@ REQUEST *request_alloc(void)
 
        request->module = "";
        request->component = "<core>";
-       if (debug_flag) request->radlog = radlog_request;
+       request->radlog = radlog_request;
 
        return request;
 }

Should fix it.

Arran Cudbard-Bell <a.cudbardb@freeradius.org>
FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic