-More verbose logging to prevent silent or vague errors
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2048 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d7d36bd23f
commit
76b71bac72
@ -10,6 +10,7 @@
|
||||
package xCAT_plugin::getpostscript;
|
||||
use xCAT::Postage;
|
||||
use xCAT::Utils;
|
||||
use xCAT::MsgUtils;
|
||||
use xCAT::NodeRange;
|
||||
|
||||
1;
|
||||
@ -59,6 +60,7 @@ sub process_request
|
||||
|
||||
if ($client) { ($client) = noderange($client) };
|
||||
unless ($client) { #Not able to do identify the host in question
|
||||
xCAT::MsgUtils->message("S","Received getpostscript from $client, which couldn't be correlated to a node (domain mismatch?)");
|
||||
return;
|
||||
}
|
||||
my $state;
|
||||
|
@ -1267,11 +1267,13 @@ sub validate {
|
||||
if ($rule->{rule} =~ /allow/i or $rule->{rule} =~ /accept/i) {
|
||||
my $logst = "xCAT: Allowing ".$request->{command}->[0];
|
||||
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];
|
||||
if ($peername) { $logst .= " for " . $peername };
|
||||
if ($peerhost) { $logst .= " from " . $peerhost };
|
||||
xCAT::MsgUtils->message("S",$logst);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user