diff --git a/lib/Qpsmtpd.pm b/lib/Qpsmtpd.pm index e5196d1..86ac87d 100644 --- a/lib/Qpsmtpd.pm +++ b/lib/Qpsmtpd.pm @@ -132,9 +132,9 @@ sub varlog { return if $trace > $TraceLevel; # no logging plugins registered, fall back to STDERR - my $prefix = defined $plugin && defined $hook ? " $plugin plugin ($hook):" : - defined $plugin ? " $plugin plugin:" : - defined $hook ? " running plugin ($hook):" : ''; + my $prefix = defined $plugin && defined $hook ? " ($hook) $plugin:" : + defined $plugin ? " $plugin:" : + defined $hook ? " ($hook) running plugin:" : ''; warn join(' ', $$ . $prefix, @log), "\n"; } diff --git a/plugins/logging/warn b/plugins/logging/warn index d62997b..ce41b49 100644 --- a/plugins/logging/warn +++ b/plugins/logging/warn @@ -32,9 +32,9 @@ sub hook_logging { return DECLINED if $trace > $self->{_level}; - my $prefix = defined $plugin && defined $hook ? " $plugin plugin ($hook):" : - defined $plugin ? " $plugin plugin:" : - defined $hook ? " running plugin ($hook):" : ''), + my $prefix = defined $plugin && defined $hook ? " ($hook) $plugin:" : + defined $plugin ? " $plugin:" : + defined $hook ? " ($hook) running plugin:" : ''; warn join(' ', $$ . $prefix, @log), "\n";