Hello,
How do I access the name of a helper function from within the helper?

helper dummy => sub {
    my $self = shift;
    my $log = shift;
    my $helper = ""; # XXX - how to determine the name dynamically?

    my $time_start = $self->get_start_time();

    $log->info({msg => "started helper $helper"});
    # .. Do something ..
    $elapsed = $self->get_elapsed_time($get_start_time);
    $log->info({msg => "completed helper $helper", took => $elapsed});
};

Appreciate any pointers in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to