Append debug messages (#1509)

This commit is contained in:
Christophe Maudoux 2018-10-22 22:40:20 +02:00
parent 5bfb38db56
commit 8ba4d112cc
2 changed files with 4 additions and 3 deletions

View File

@ -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");

View File

@ -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