docs/logging: corrected example register() syntax

This commit is contained in:
Matt Simerson 2013-04-22 16:30:26 -07:00
parent 8f834d5df2
commit 050aa4b0bf

View File

@ -86,7 +86,7 @@ loglevel settings from the plugins/config entry $self->{_args}{loglevel}. A
simple and recommended example is as follows: simple and recommended example is as follows:
sub register { sub register {
my ( $self, $qp ) = shift, shift; my ( $self, $qp ) = (shift, shift);
$self->log(LOGERROR, "Bad arguments") if @_ % 2; $self->log(LOGERROR, "Bad arguments") if @_ % 2;
$self->{_args} = { @_ }; $self->{_args} = { @_ };
} }