From 0e25aa33f76f465486d5fc36d23eabc829a7c29d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 9 Feb 2011 14:00:48 +0100 Subject: [PATCH] Debugausgaben bei Level 0 vermeiden --- SL/DB/Helper/PriceTaxCalculator.pm | 2 +- SL/DB/Invoice.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/DB/Helper/PriceTaxCalculator.pm b/SL/DB/Helper/PriceTaxCalculator.pm index 2988d14ee..d84d0feb7 100644 --- a/SL/DB/Helper/PriceTaxCalculator.pm +++ b/SL/DB/Helper/PriceTaxCalculator.pm @@ -229,7 +229,7 @@ sub _num_decimal_places { } sub _dbg { - $::lxdebug->message(0, join(' ', @_)); + # $::lxdebug->message(0, join(' ', @_)); } 1; diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 758f91a61..91ee14c85 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -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; } -- 2.20.1