From: ivan Date: Tue, 28 Dec 2004 23:30:58 +0000 (+0000) Subject: add debug flag to sqlradius export X-Git-Tag: BEFORE_FINAL_MASONIZE~752 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=72312a46911b3e71a4ea9739ee1571d74ae433fd add debug flag to sqlradius export --- 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; }