Commit 8ba4d112 authored by Christophe Maudoux's avatar Christophe Maudoux

Append debug messages (#1509)

parent 5bfb38db
......@@ -485,12 +485,13 @@ sub retrieveSession {
$class->logger->error(
"_utime is not defined. This should not happen. Check if it is well transmitted to handler"
) unless $session->data->{_utime};
$class->logger->debug( "Check session timeoutActivity from Handler -> " . $class->tsv->{timeoutActivity} ."s" );
if (
$now - $session->data->{_utime} > $class->tsv->{timeout}
or ( $class->tsv->{timeoutActivity}
and $session->data->{_lastSeen}
and $now - $session->data->{_lastSeen} >
$class->tsv->{timeoutActivity} )
and ( ( $now - $session->data->{_lastSeen} ) > $class->tsv->{timeoutActivity} )
)
{
$class->logger->info("Session $id expired");
......
......@@ -359,7 +359,7 @@ sub getApacheSession {
return;
}
$self->logger->debug("Get session $id from Portal::Main::Run") if ( $id );
$self->logger->debug( "Check session timeoutActivity" );
$self->logger->debug("Check session timeoutActivity -> " . $self->conf->{timeoutActivity} . "s");
my $now = time;
if (
$id
......
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