More debug (#595)
This commit is contained in:
parent
c5309a6e35
commit
f7cc7b2b66
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user