Fix log bustage ($coworker)
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@586 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
bf5eea44c2
commit
5910aa7292
@ -382,7 +382,7 @@ sub run_hook {
|
|||||||
my ($self, $hook, $code, @args) = @_;
|
my ($self, $hook, $code, @args) = @_;
|
||||||
my @r;
|
my @r;
|
||||||
if ( $hook eq 'logging' ) { # without calling $self->log()
|
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;
|
$@ and warn("FATAL LOGGING PLUGIN ERROR: ", $@) and next;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user