Improve log (#2071)

merge-requests/133/head
Christophe Maudoux 5 years ago
parent 093b4e6817
commit 824acec27f
  1. 10
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/Notifications/JSON.pm
  2. 10
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/Notifications/XML.pm

@ -32,7 +32,10 @@ sub checkForNotifications {
my $uid = $req->sessionInfo->{ $self->notifObject->notifField };
my ( $notifs, $forUser ) = $self->notifObject->getNotifications($uid);
my $form;
return 0 unless ($notifs);
unless ($notifs) {
$self->logger->info("No notification found");
return 0;
};
# Transform notifications
my $i = 0; # Files count
@ -119,7 +122,10 @@ sub viewNotification {
my ( $notifs, $forUser ) =
$self->notifObject->getAcceptedNotifs( $uid, $ref );
my $form;
return 0 unless ($notifs);
unless ($notifs) {
$self->logger->info("No accepted notification found");
return 0;
};
# Transform notifications
my $i = 0; # Files count

@ -63,7 +63,10 @@ sub checkForNotifications {
my $uid = $req->sessionInfo->{ $self->notifObject->notifField };
my ( $notifs, $forUser ) = $self->notifObject->getNotifications($uid);
my $form;
return 0 unless ($notifs);
unless ($notifs) {
$self->logger->info("No notification found");
return 0;
};
# Transform notifications
my $i = 0; # Files count
@ -167,7 +170,10 @@ sub viewNotification {
my ( $notifs, $forUser ) =
$self->notifObject->getAcceptedNotifs( $uid, $ref );
my $form;
return 0 unless ($notifs);
unless ($notifs) {
$self->logger->info("No accepted notification found");
return 0;
};
# Transform notifications
my $i = 0; # Files count

Loading…
Cancel
Save