add customer fields option with agent, display_custnum, status and name, RT#73721
[freeside.git] / FS / FS / ClientAPI.pm
index 1677fcc..1fea28c 100644 (file)
@@ -2,11 +2,12 @@ package FS::ClientAPI;
 
 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;
+$me = '[FS::ClientAPI]';
 
 %handler = ();
 
@@ -34,6 +35,7 @@ sub dispatch {
   my ( $self, $name ) = ( shift, shift );
   $name =~ s(/)(::)g;
   my $sub = "FS::ClientAPI::$name";
+  warn "$me dispatch: calling $sub with args @_\n" if $DEBUG;
   no strict 'refs';
   &{$sub}(@_);
 }