Skip to content

Commit

Permalink
provide compatible deprecated version of log_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx committed Dec 4, 2012
1 parent cbef8a7 commit c9498de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/MooseX/Role/Loggable.pm
Expand Up @@ -172,6 +172,13 @@ sub BUILDARGS {
return {%args};
}

sub log_fields {
my $self = shift;
carp 'Calling ->log_fields() is deprecated, ' .
'it will be removed in the next version';
return ( logger => $self->logger );
}

1;

__END__
Expand Down

0 comments on commit c9498de

Please sign in to comment.