From 0ec7bc846e1e4b6a0dccdb6b41cc023af4a3c743 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 7 Mar 2017 13:37:59 -0800 Subject: [PATCH] Correct logging in inline policy actions Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index f617795c0..9010c5ddf 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -944,13 +944,14 @@ sub add_policy_rules( $$$$$ ) { # # Default action is an inline # + ( undef, my $level ) = split /:/, $paction, 2; ( $action, my $param ) = get_target_param( $action ); process_inline( $action, #Inline $chainref, #Chain '', #Matches '', #Matches1 - $loglevel, #Log Level and Tag + $level || '', #Log Level and Tag $paction, #Target $param || '', #Param '-', #Source