LP1895660: Proxy.pm Proxy/Authen.pm
authorJason Boyer <JBoyer@equinoxinitiative.org>
Tue, 15 Sep 2020 20:14:38 +0000 (16:14 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 14 May 2021 21:38:10 +0000 (17:38 -0400)
Checking perms LOUD_NOISES for user 123 at location 321

So? I have changed these to use $logger->debug though they can
maybe just be removed entirely?

Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/perlmods/lib/OpenILS/WWW/Proxy.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/Proxy/Authen.pm

index ed6cdf9..74c4604 100644 (file)
@@ -10,6 +10,7 @@ use Digest::MD5 qw/md5_hex/;
 
 use OpenSRF::EX qw(:try);
 use OpenSRF::System;
+use OpenSRF::Utils::Logger qw/$logger/;
 
 
 # set the bootstrap config and template include directory when
@@ -125,7 +126,7 @@ sub handler {
 
     $ws_ou ||= $user->home_ou;
 
-    warn "Checking perms " . join(',', @$perms) . " for user " . $user->id . " at location $ws_ou\n";
+    $logger->debug("Checking perms " . join(',', @$perms) . " for user " . $user->id . " at location $ws_ou\n");
 
     my $failures = OpenSRF::AppSession
         ->create('open-ils.actor')
index 2366cfe..0cc9ec4 100644 (file)
@@ -12,6 +12,7 @@ use Digest::MD5 qw/md5_hex/;
 
 use OpenSRF::EX qw(:try);
 use OpenSRF::System;
+use OpenSRF::Utils::Logger qw/$logger/;
 
 # set the bootstrap config when 
 # this module is loaded
@@ -87,7 +88,7 @@ sub handler {
         if ($user) {
             $ws_ou ||= $user->home_ou;
     
-            warn "Checking perms " . join(',', @$perms) . " for user " . $user->id . " at location $ws_ou\n";
+            $logger->debug("Checking perms " . join(',', @$perms) . " for user " . $user->id . " at location $ws_ou\n");
     
             my $failures = OpenSRF::AppSession
                 ->create('open-ils.actor')