From: Moritz Bunkus Date: Wed, 9 Feb 2011 13:00:48 +0000 (+0100) Subject: Debugausgaben bei Level 0 vermeiden X-Git-Tag: release-2.6.3~61^2~7^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0e25aa33f76f465486d5fc36d23eabc829a7c29d;p=kivitendo-erp.git Debugausgaben bei Level 0 vermeiden --- 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; }