From 72312a46911b3e71a4ea9739ee1571d74ae433fd Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 28 Dec 2004 23:30:58 +0000 Subject: [PATCH] add debug flag to sqlradius export --- FS/FS/part_export/sqlradius.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/FS/FS/part_export/sqlradius.pm b/FS/FS/part_export/sqlradius.pm index 63927780b..e1d862c39 100644 --- a/FS/FS/part_export/sqlradius.pm +++ b/FS/FS/part_export/sqlradius.pm @@ -1,12 +1,14 @@ package FS::part_export::sqlradius; -use vars qw(@ISA %info %options $notes1 $notes2); +use vars qw(@ISA $DEBUG %info %options $notes1 $notes2); use Tie::IxHash; use FS::Record qw( dbh ); use FS::part_export; @ISA = qw(FS::part_export); +$DEBUG = 0; + tie %options, 'Tie::IxHash', 'datasrc' => { label=>'DBI data source ' }, 'username' => { label=>'Database username' }, @@ -75,6 +77,7 @@ sub rebless { shift; } sub export_username { my($self, $svc_acct) = (shift, shift); + warn "export_username called on $self with arg $svc_acct" if $DEBUG; $svc_acct->username; } -- 2.11.0