[Koha-patches] [PATCH] Bug 7766 - C4/Auth.pm: emit DEBUG output to STDERR
Dobrica Pavlinusic
dpavlin at rot13.org
Wed Mar 21 15:43:47 CET 2012
writing to STDOUT breaks plack when running with DEBUG=1
---
C4/Auth.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Auth.pm b/C4/Auth.pm
index f74fc84..5ce1499 100644
--- a/C4/Auth.pm
+++ b/C4/Auth.pm
@@ -1459,7 +1459,7 @@ sub checkpw {
my ( $dbh, $userid, $password, $query ) = @_;
if ($ldap) {
- $debug and print "## checkpw - checking LDAP\n";
+ $debug and print STDERR "## checkpw - checking LDAP\n";
my ($retval,$retcard,$retuserid) = checkpw_ldap(@_); # EXTERNAL AUTH
($retval) and return ($retval,$retcard,$retuserid);
}
--
1.7.2.5
More information about the Koha-patches
mailing list