full backtrace
authorIvan Kohler <ivan@freeside.biz>
Thu, 21 Aug 2014 07:29:13 +0000 (00:29 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 21 Aug 2014 07:29:13 +0000 (00:29 -0700)
FS/FS/option_Common.pm

index 74adbed..8c69089 100644 (file)
@@ -3,6 +3,7 @@ package FS::option_Common;
 use strict;
 use base qw( FS::Record );
 use vars qw( $DEBUG );
+use Carp qw( cluck );
 use Scalar::Util qw( blessed );
 use FS::Record qw( qsearch qsearchs dbh );
 
@@ -344,7 +345,7 @@ sub option {
       $pkey    => $self->get($pkey),
       $namecol => shift,
   };
-  warn "$self -> option: searching for ".
+  cluck "$self -> option: searching for ".
          join(' / ', map { "$_ => ". $hashref->{$_} } keys %$hashref )
     if $DEBUG;
   my $obj = qsearchs($option_table, $hashref);