Commit 359bc3a4 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Logging change.

parent e69a7879
......@@ -104,9 +104,7 @@ if (!defined($request)) {
# Use libaudit to capture any output from libraries and programs.
# Send that to tbops so they can be fixed.
#
LogStart(0);
#print STDERR time() . "\n";
LogStart(0, undef, LIBAUDIT_LOGTBOPS());
# Add stuff for log message if sent.
AddAuditInfo("message", $request . "\n");
......@@ -127,10 +125,8 @@ my $response = $responder->{'_decode'}->serve($request,
# Terminate the log capture so that we can print the response to STDOUT
# for the web server.
#
print STDERR "\n\n" . $response;
#print STDERR time() . "\n";
LogEnd();
#print STDERR "\n\n" . $response;
LogEnd(0);
print "Content-Type: text/xml\n\n" . $response;
......
......@@ -104,7 +104,7 @@ if (!defined($request)) {
# Use libaudit to capture any output from libraries and programs.
# Send that to tbops so they can be fixed.
#
LogStart(0);
LogStart(0, undef, LIBAUDIT_LOGTBOPS());
#
# Create and set our RPC context for any calls we end up making.
......@@ -136,9 +136,8 @@ my $response = $responder->{'_decode'}->serve($request,
# Terminate the log capture so that we can print the response to STDOUT
# for the web server.
#
print STDERR "\n\n" . $response;
LogEnd();
#print STDERR "\n\n" . $response;
LogEnd(0);
print "Content-Type: text/xml \n\n" . $response;
exit(0);
......@@ -104,15 +104,13 @@ if (!defined($request)) {
# Use libaudit to capture any output from libraries and programs.
# Send that to tbops so they can be fixed.
#
LogStart(0);
LogStart(0, undef, LIBAUDIT_LOGTBOPS());
#
# Create and set our RPC context for any calls we end up making.
#
Genixmlrpc->SetContext(Genixmlrpc->Context($certificate));
#print STDERR time() . "\n";
# Add stuff for log message if sent.
AddAuditInfo("message", $request . "\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment