This goes a step further than
a328802a (which only output newline to
terminals) to just remove the extra newline altogether. It is not
part of the original message, and query-agent is meant to me mostly
used in pipeline anyway where the stdout is captured by another
calling process.
$client->log('verbose', "status: %s\n", $status);
if (defined $ret) {
printf("%s", $ret->{server});
- printf("\n") if (-t STDOUT);
exit 0;
}
exit 1;
$client->log('info', "valid: %s\n", $ret->{valid});
$client->log('info', "server: %s\n", $ret->{server});
printf("%s", $ret->{message});
- printf("\n") if (-t STDOUT);
exit 0
if ($ret->{valid});
}