From: ivan Date: Wed, 16 Feb 2011 11:04:34 +0000 (+0000) Subject: add debugging X-Git-Tag: freeside_2_1_2~47 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=d410e7d2af597373deec489beb19181a3ba301b1 add debugging --- diff --git a/FS/FS/ClientAPI.pm b/FS/FS/ClientAPI.pm index 1677fcc5d..488b079f2 100644 --- a/FS/FS/ClientAPI.pm +++ b/FS/FS/ClientAPI.pm @@ -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\n" if $DEBUG; no strict 'refs'; &{$sub}(@_); }