projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
05e83a0
)
add debugging
author
ivan
<ivan>
Wed, 16 Feb 2011 11:04:34 +0000
(11:04 +0000)
committer
ivan
<ivan>
Wed, 16 Feb 2011 11:04:34 +0000
(11:04 +0000)
FS/FS/ClientAPI.pm
patch
|
blob
|
history
diff --git
a/FS/FS/ClientAPI.pm
b/FS/FS/ClientAPI.pm
index
1677fcc
..
488b079
100644
(file)
--- a/
FS/FS/ClientAPI.pm
+++ b/
FS/FS/ClientAPI.pm
@@
-2,11
+2,12
@@
package FS::ClientAPI;
use strict;
use base 'Exporter';
use strict;
use base 'Exporter';
-use vars qw( @EXPORT_OK %handler $domain $DEBUG );
+use vars qw( @EXPORT_OK %handler $domain $DEBUG
$me
);
@EXPORT_OK = qw( load_clientapi_modules );
$DEBUG = 0;
@EXPORT_OK = qw( load_clientapi_modules );
$DEBUG = 0;
+$me = '[FS::ClientAPI]';
%handler = ();
%handler = ();
@@
-34,6
+35,7
@@
sub dispatch {
my ( $self, $name ) = ( shift, shift );
$name =~ s(/)(::)g;
my $sub = "FS::ClientAPI::$name";
my ( $self, $name ) = ( shift, shift );
$name =~ s(/)(::)g;
my $sub = "FS::ClientAPI::$name";
+ warn "$me dispatch: calling $sub\n" if $DEBUG;
no strict 'refs';
&{$sub}(@_);
}
no strict 'refs';
&{$sub}(@_);
}