better debugging for options passed to insert method
authorivan <ivan>
Thu, 23 Dec 2004 09:07:34 +0000 (09:07 +0000)
committerivan <ivan>
Thu, 23 Dec 2004 09:07:34 +0000 (09:07 +0000)
FS/FS/part_pkg.pm

index 9392f4b..cef4a61 100644 (file)
@@ -136,7 +136,9 @@ the scalar will be updated with the custnum value from the cust_pkg record.
 sub insert {
   my $self = shift;
   my %options = @_;
-  warn "FS::part_pkg::insert called on $self with options %options" if $DEBUG;
+  warn "FS::part_pkg::insert called on $self with options ".
+       join(', ', map "$_=>$options{$_}", keys %options)
+    if $DEBUG;
 
   local $SIG{HUP} = 'IGNORE';
   local $SIG{INT} = 'IGNORE';