[Koha-patches] [PATCH 2/2] check $debug to print debug info only when wanted
Galen Charlton
galen.charlton at liblime.com
Wed Jul 22 16:08:39 CEST 2009
---
C4/SIP/ILS/Patron.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/SIP/ILS/Patron.pm b/C4/SIP/ILS/Patron.pm
index abdb7e9..d3f6de8 100644
--- a/C4/SIP/ILS/Patron.pm
+++ b/C4/SIP/ILS/Patron.pm
@@ -95,7 +95,7 @@ sub new {
inet => ( !$debarred ),
);
}
- print STDERR "patron fines: $ilspatron{fines} ... amountoutstanding: $kp->{amountoutstanding} ... CHARGES->amount: $flags->{CHARGES}->{amount}\n";
+ $debug and warn "patron fines: $ilspatron{fines} ... amountoutstanding: $kp->{amountoutstanding} ... CHARGES->amount: $flags->{CHARGES}->{amount}";
for (qw(CHARGES CREDITS GNA LOST DBARRED NOTES)) {
($flags->{$_}) or next;
$ilspatron{screen_msg} .= ($flags->{$_}->{message} || '') ;
--
1.5.6.5
More information about the Koha-patches
mailing list