Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e59d5b0487
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (25 sloc) 0.614 kb
package Angelos::Controller::Plugin::DebugHook;
use Angelos::Plugin;
use Angelos::Logger;
after 'SETUP' => sub {
my $self = shift;
Angelos::Logger->instance->log(
level => 'info',
message => "SETUP: class=" . ref $self,
);
};
before 'ACTION' => sub {
my ( $self, $c, $action, $params ) = @_;
Angelos::Logger->instance->log(
level => 'info',
message => "BEFORE ACTION: $action, $params",
);
};
after 'ACTION' => sub {
my $self = shift;
Angelos::Logger->instance->log(
level => 'info',
message => "AFTER ACTION",
);
};
1;
Jump to Line
Something went wrong with that request. Please try again.