More debug (#595)

This commit is contained in:
Xavier Guimard 2017-01-14 08:17:42 +00:00
parent c5309a6e35
commit f7cc7b2b66
4 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,7 @@ sub addRoute {
my ( $self, $word, $dest, $methods, $transform ) = (@_);
$methods ||= [qw(GET POST PUT DELETE)];
foreach my $method (@$methods) {
$self->lmLog( "Add $method route:", 'debug' );
$self->genRoute( $self->routes->{$method}, $word, $dest, $transform );
}
return $self;

View File

@ -24,12 +24,14 @@ sub addRoute {
sub addAuthRoute {
my $self = shift;
$self->routes( $self->authRoutes );
$self->lmLog( 'Declaring auth route', 'debug' );
return $self->SUPER::addRoute(@_);
}
sub addUnauthRoute {
my $self = shift;
$self->routes( $self->unAuthRoutes );
$self->lmLog( 'Declaring unauth route', 'debug' );
return $self->SUPER::addRoute(@_);
}

View File

@ -24,7 +24,7 @@ sub init {
# Add warning in log
$self->lmLog(
"Using demonstration mode, go in Manager to edit the configuration",
"Using demonstration mode, go to Manager to edit the configuration",
'warn' );
1;

View File

@ -276,6 +276,7 @@ sub loadPlugin {
}
}
( $obj and $obj->init ) or return 0;
$self->lmLog( "Plugin $plugin initializated", 'debug' );
return $obj;
}