Commit b79c9659 authored by Antoine Rosier's avatar Antoine Rosier

Add user logs informations (#1687)

parent ddb42e35
......@@ -560,7 +560,8 @@ sub _deleteSession {
# Log
my $user = $req->{sessionInfo}->{ $self->conf->{whatToTrace} };
$self->userLogger->notice("User $user has been disconnected") if $user;
my $mod = $req->{sessionInfo}->{_auth};
$self->userLogger->notice("User $user has been disconnected from $mod"." (".$req->{sessionInfo}->{ipAddr}.")") if $user;
return $session->error ? 0 : 1;
}
......
......@@ -92,6 +92,11 @@ sub run {
}
}
}
# Log
my $user = $req->{sessionInfo}->{ $self->conf->{whatToTrace} };
my $mod = $req->{sessionInfo}->{_auth};
$self->userLogger->notice("Session granted for $user by $mod"." (".$req->{sessionInfo}->{ipAddr}.")") if ($user);
return PE_OK;
}
......
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