disable debugging
authorivan <ivan>
Sat, 14 May 2005 16:30:58 +0000 (16:30 +0000)
committerivan <ivan>
Sat, 14 May 2005 16:30:58 +0000 (16:30 +0000)
FS/FS/Misc.pm
FS/FS/cust_bill.pm

index 92780f7..1bb1ae1 100644 (file)
@@ -8,7 +8,7 @@ use Carp;
 @ISA = qw( Exporter );
 @EXPORT_OK = qw( send_email send_fax );
 
-$DEBUG = 1;
+$DEBUG = 0;
 
 =head1 NAME
 
@@ -245,13 +245,13 @@ sub send_fax {
 
   if ($faxjob->success) {
     warn "Successfully queued fax to '$options{dialstring}' with jobid " .
-            $faxjob->jobid;
+           $faxjob->jobid
+      if $DEBUG;
+    return '';
   } else {
     return 'Error while sending FAX: ' . $faxjob->trace;
   }
 
-  return '';
-
 }
 
 package Mail::Internet;
index f62f112..d649770 100644 (file)
@@ -23,7 +23,7 @@ use FS::cust_bill_event;
 
 @ISA = qw( FS::Record );
 
-$DEBUG = 1;
+$DEBUG = 0;
 
 #ask FS::UID to run this stuff for us later
 FS::UID->install_callback( sub {