Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $self->hook(before_render => sub {
- my ($c, $args) = @_;
- if ($args->{'exception'}) {
- $log->debug('Path '.$c->tx->req->url->path);
- $log->debug('IP: '.$c->tx->req->content->headers->{'headers'}->{'x-forwarded-for'}->[0]);
- $log->debug('User Name: '.$c->{'stash'}->{'__authentication__'}->{'user'}->{'name'});
- $log->debug('User id: '.$c->{'stash'}->{'__authentication__'}->{'user'}->{'id'});
- $log->debug('Frame: '.$args->{'exception'}->{'frames'}->[0]->[1]);
- $log->debug('Line Num: '.$args->{'exception'}->{'line'}->[0]);
- $log->debug('Line Text: '.$args->{'exception'}->{'line'}->[1]);
- $log->debug('Message: '.$args->{'exception'}->{'message'});
- return;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement