Append debug logs (#2071)

lowercase-endpoints
Christophe Maudoux 5 years ago
parent 3ec85e6775
commit ea9f019bc8
  1. 3
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Attributes.pm
  2. 1
      lemonldap-ng-manager/site/htdocs/static/js/conftree.min.js
  3. 2
      lemonldap-ng-manager/site/htdocs/static/js/conftree.min.js.map
  4. 6
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/Notifications.pm

@ -223,7 +223,8 @@ m[^(?:(?:\-+\s*BEGIN\s+(?:PUBLIC\s+KEY|CERTIFICATE)\s*\-+\r?\n)?[a-zA-Z0-9/\+\r\
},
'select' => {
'test' => sub {
my $test = grep( { $_ eq $_[0]; }
my $test =
grep( { $_ eq $_[0]; }
map( { $_->{'k'}; } @{ $_[2]{'select'}; } ) );
return $test
? 1

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -206,6 +206,9 @@ sub retrieveNotifs {
my ( $self, $req ) = @_;
# Retrieve user's accepted notifications
$self->logger->debug( 'Searching for "'
. $req->userData->{ $self->conf->{whatToTrace} }
. '" accepted notification(s)' );
my @_notifications = sort {
$b->{epoch} <=> $a->{epoch}
or $a->{reference} cmp $b->{reference}
@ -224,8 +227,11 @@ sub retrieveNotifs {
sub _viewNotif {
my ( $self, $req, $ref, $epoch ) = @_;
$self->logger->debug( "Retrieve notification with reference: \"$ref\" and epoch: \"$epoch\"" );
my $notif = eval { $self->module->viewNotification( $req, $ref, $epoch ); };
if ($@) {
$self->logger->debug( "Notification not found" );
$self->logger->error($@);
return '';
}

Loading…
Cancel
Save