diff --git a/lib/Qpsmtpd.pm b/lib/Qpsmtpd.pm index 9914f10..ad56b36 100644 --- a/lib/Qpsmtpd.pm +++ b/lib/Qpsmtpd.pm @@ -382,7 +382,7 @@ sub run_hook { my ($self, $hook, $code, @args) = @_; my @r; if ( $hook eq 'logging' ) { # without calling $self->log() - eval { (@r) = $code->{code}->($self, $self->{_transaction}, @_); }; + eval { (@r) = $code->{code}->($self, $self->{_transaction}, @args); }; $@ and warn("FATAL LOGGING PLUGIN ERROR: ", $@) and next; } else {