More debug info (#1449)

environments/ppa-mbqj77/deployments/23
Xavier Guimard 7 years ago
parent 0769967407
commit 1a2a109025
  1. 5
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Init.pm

@ -325,7 +325,10 @@ sub findEP {
if ( $obj->can($sub) ) {
$self->logger->debug(" Found $sub entry point:");
if ( my $callback = $obj->$sub ) {
push @{ $self->{$sub} }, sub { $obj->$callback( $_[0] ) };
push @{ $self->{$sub} }, sub {
eval { $obj->logger->debug("Launching ${plugin}::$callback") };
$obj->$callback( $_[0] );
};
$self->logger->debug(" -> $callback");
}
}

Loading…
Cancel
Save