Commit 91544e51 authored by Benjamin Rokseth's avatar Benjamin Rokseth
Browse files

koha: remove some more logging

parent 81f6fae4
......@@ -119,7 +119,7 @@ sub checkAuthMethods {
try {
$auth = $class->new()->DoAuth($session, $req);
} catch {
$self->{logger}->info("Session auth failed: ". warn $_->description);
$self->{logger}->debug("Session auth failed: ". warn $_->description);
};
$auth->{auth} and return $auth->{auth};
}
......
......@@ -4,13 +4,11 @@ use parent "Deichman::Auth";
# Placeholder to show empty auth module
sub DoAuth {
my ($self, $session, $req) = @_;
warn "CALLED CAS AUTH";
return;
}
sub getAuthenticationObject {
my ($self, $user) = @_;
warn "GETAUTHENTICATIONOBJECT CAS";
return;
};
......
......@@ -177,7 +177,7 @@ sub call {
my $dt = Time::HiRes::time() - $t0;
# log timing
$ENV{LOG_LEVEL} eq "DEBUG" and printf STDERR "%s [%d] [%s %s] %s %.2f %s\n",
($ENV{LOG_LEVEL} and $ENV{LOG_LEVEL} eq "DEBUG") and printf STDERR "%s [%d] [%s %s] %s %.2f %s\n",
scalar(gmtime),
$$,
($session->id // "-"),
......
......@@ -115,7 +115,6 @@ sub authenticate_api_request {
#my $cookie = $c->cookie('CGISESSID');
my $cookie = $c->cookie("koha.session");
my ($user);
warn "AUTHENTICATE_API_REQUEST";
#use Data::Dumper; warn Dumper($cookie);
# Mojo doesn't use %ENV the way CGI apps do
# Manually pass the remote_address to check_auth_cookie
......
......@@ -30,6 +30,7 @@ use Mojo::Server::PSGI;
$ENV{DEV_INSTALL} = 1;
$ENV{KOHA_HOME} = "/koha";
$ENV{LOG_LEVEL} ||= "WARN";
# Pre-load libraries
use C4::Boolean;
use C4::Koha;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment