[RADIATOR] Undefined subroutine &Radius::Configurable::log_debug

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Fri Jul 7 08:52:10 UTC 2017


On 7 Jul 2017, at 7:50, Arya, Manish Kumar wrote:

> Hi,
>    I have written a Pre auth hook which uses log_debug to print 
> messages in radius log files. This is working well on my lab 
> radius.however, when I use same script in production I do get
> Fri Jul  7 08:40:19 2017: ERR: Error in PreAuthHook(): Undefined 
> subroutine &Radius::Configurable::log_debug called at (eval 61) line 
> 2.
> What could be the problem and fix ?

In scripts in the old days I used to use:

main::log($main::LOG_DEBUG, “Hello world\n”);

Or if you have Handler object name $h or similar .. 
$h->log($main::LOG_DEBUG, “Handling request with Handler '$h->{Name}', 
Identifier '$h->{Identifier}'", $p);


Hope that helps.

/bz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.open.com.au/pipermail/radiator/attachments/20170707/af074ffb/attachment.html>


More information about the radiator mailing list