From: ivan Date: Fri, 21 Jun 2002 20:17:43 +0000 (+0000) Subject: debugging option X-Git-Tag: freeside_1_4_0_beta1~71 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=185eb6429f5ae208dfaf206395db4d3a16fe8ae3 debugging option --- diff --git a/FS/FS/part_export/infostreet.pm b/FS/FS/part_export/infostreet.pm index 8a68a2077..a2fc049f4 100644 --- a/FS/FS/part_export/infostreet.pm +++ b/FS/FS/part_export/infostreet.pm @@ -1,11 +1,13 @@ package FS::part_export::infostreet; -use vars qw(@ISA %infostreet2cust_main); +use vars qw(@ISA %infostreet2cust_main $DEBUG); use FS::UID qw(dbh); use FS::part_export; @ISA = qw(FS::part_export); +$DEBUG = 0; + %infostreet2cust_main = ( 'firstName' => 'first', 'lastName' => 'last', @@ -151,6 +153,8 @@ sub infostreet_setContact { sub infostreet_command { #subroutine, not method my($url, $username, $password, $groupID, $method, @args) = @_; + warn "[FS::part_export::infostreet] $method ".join(' ', @args)."\n" if $DEBUG; + #quelle hack if ( $method =~ /,/ ) { foreach my $part ( split(/,\s*/, $method) ) {