Commit f7cc7b2b authored by Xavier Guimard's avatar Xavier Guimard

More debug (#595)

parent c5309a6e
......@@ -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;
......
......@@ -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(@_);
}
......
......@@ -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;
......
......@@ -276,6 +276,7 @@ sub loadPlugin {
}
}
( $obj and $obj->init ) or return 0;
$self->lmLog( "Plugin $plugin initializated", 'debug' );
return $obj;
}
......
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