From 185eb6429f5ae208dfaf206395db4d3a16fe8ae3 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 21 Jun 2002 20:17:43 +0000 Subject: [PATCH] debugging option --- FS/FS/part_export/infostreet.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) ) { -- 2.11.0