RT#38217: Send email when logging conditions are met [fix to warning invocation in...
authorJonathan Prykop <jonathan@freeside.biz>
Tue, 26 Jul 2016 21:44:10 +0000 (16:44 -0500)
committerJonathan Prykop <jonathan@freeside.biz>
Tue, 30 Aug 2016 01:23:48 +0000 (20:23 -0500)
FS/FS/cust_bill_pkg_tax_location.pm

index f16e930..0e51000 100644 (file)
@@ -341,7 +341,7 @@ sub upgrade_taxable_billpkgnum {
         } #for $i
       } else {
         # the more complicated case
-        $log->warn("mismatched charges and tax links in pkg#$pkgnum",
+        $log->warning("mismatched charges and tax links in pkg#$pkgnum",
           object => $cust_bill);
         my $tax_amount = sum(map {$_->amount} @tax_links);
         # remove all tax link records and recreate them to be 1:1 with