From f3ec425b0dda399f004fe109ad3caa47754ac57a Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 25 Feb 2010 16:00:09 +0000 Subject: [PATCH] add parameter list to the Allowing and Denying syslog entries git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5298 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 714bcd967..e32b61a9a 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1638,12 +1638,24 @@ sub validate { if ($rule->{rule} =~ /allow/i or $rule->{rule} =~ /accept/i) { my $logst = "xCAT: Allowing ".$request->{command}->[0]; if ($request->{noderange} && defined($request->{noderange}->[0])) { $logst .= " to ".$request->{noderange}->[0]; } + # add each argument + my $args = $request->{arg}; + foreach my $argument (@$args){ + + $logst .= " " . $argument; + } if ($peername) { $logst .= " for " . $peername }; if ($peerhost) { $logst .= " from " . $peerhost }; xCAT::MsgUtils->message("S",$logst); return 1; } else { my $logst = "xCAT: Denying ".$request->{command}->[0]; + # add each argument + my $args = $request->{arg}; + foreach my $argument (@$args){ + + $logst .= " " . $argument; + } if ($peername) { $logst .= " for " . $peername }; if ($peerhost) { $logst .= " from " . $peerhost }; xCAT::MsgUtils->message("S",$logst);