Debugausgaben bei Level 0 vermeiden
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 9 Feb 2011 13:00:48 +0000 (14:00 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 9 Feb 2011 13:00:48 +0000 (14:00 +0100)
SL/DB/Helper/PriceTaxCalculator.pm
SL/DB/Invoice.pm

index 2988d14..d84d0fe 100644 (file)
@@ -229,7 +229,7 @@ sub _num_decimal_places {
 }
 
 sub _dbg {
-  $::lxdebug->message(0, join(' ', @_));
+  $::lxdebug->message(0, join(' ', @_));
 }
 
 1;
index 758f91a..91ee14c 100644 (file)
@@ -178,7 +178,7 @@ sub post {
   if ($self->db->in_transaction) {
     $worker->();
   } elsif (!$self->db->do_transaction($worker)) {
-    $::lxdebug->message(0, "convert_to_invoice failed: " . join("\n", (split(/\n/, $self->db->error))[0..2]));
+    $::lxdebug->message(LXDebug->WARN(), "convert_to_invoice failed: " . join("\n", (split(/\n/, $self->db->error))[0..2]));
     return undef;
   }