view svc_pbx usage in selfservice, #34836
[freeside.git] / FS / FS / ClientAPI.pm
index 488b079..e4031b2 100644 (file)
@@ -6,7 +6,7 @@ use vars qw( @EXPORT_OK %handler $domain $DEBUG $me );
 
 @EXPORT_OK = qw( load_clientapi_modules );
 
-$DEBUG = 0;
+$DEBUG = 1;
 $me = '[FS::ClientAPI]';
 
 %handler = ();
@@ -35,7 +35,7 @@ sub dispatch {
   my ( $self, $name ) = ( shift, shift );
   $name =~ s(/)(::)g;
   my $sub = "FS::ClientAPI::$name";
-  warn "$me dispatch: calling $sub\n" if $DEBUG;
+  warn "$me dispatch: calling $sub with args @_\n" if $DEBUG;
   no strict 'refs';
   &{$sub}(@_);
 }