From 76b71bac72198b43fb0cd95ec722b49115e1a706 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 20 Aug 2008 16:51:06 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/getpostscript.pm | 2 ++ xCAT-server/sbin/xcatd | 2 ++ 2 files changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/getpostscript.pm b/xCAT-server/lib/xcat/plugins/getpostscript.pm index d76b0abff..e021669ab 100644 --- a/xCAT-server/lib/xcat/plugins/getpostscript.pm +++ b/xCAT-server/lib/xcat/plugins/getpostscript.pm @@ -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; diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 444003008..e50d854fb 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -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; }