From: Jameson Rollins Date: Sat, 30 Oct 2010 14:28:06 +0000 (-0400) Subject: print msva return message to stdout in query-agent X-Git-Tag: msva-perl_debian/0.6-1~3^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=39fe74388072f4f4a340cdadba6d15dac5d63575;p=monkeysphere-validation-agent.git print msva return message to stdout in query-agent msva-query-agent is not using stdout. I believe that stdout is the appropriate place to return the query status message from the server. --- diff --git a/msva-query-agent b/msva-query-agent index 1eaff50..104691b 100755 --- a/msva-query-agent +++ b/msva-query-agent @@ -41,8 +41,8 @@ my ($status,$ret) = $client->query_agent($context,$peer,$pkctype,$pkcdata); $client->log('info', "status: %s\n", $status); if (defined $ret) { $client->log('info', "valid: %s\n", $ret->{valid}); - $client->log('fatal', "message: %s\n", $ret->{message}); $client->log('info', "server: %s\n", $ret->{server}); + printf("%s\n", $ret->{message}); exit 0 if ($ret->{valid}); }