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

Logging change.

parent e69a7879
...@@ -104,9 +104,7 @@ if (!defined($request)) { ...@@ -104,9 +104,7 @@ if (!defined($request)) {
# Use libaudit to capture any output from libraries and programs. # Use libaudit to capture any output from libraries and programs.
# Send that to tbops so they can be fixed. # Send that to tbops so they can be fixed.
# #
LogStart(0); LogStart(0, undef, LIBAUDIT_LOGTBOPS());
#print STDERR time() . "\n";
# Add stuff for log message if sent. # Add stuff for log message if sent.
AddAuditInfo("message", $request . "\n"); AddAuditInfo("message", $request . "\n");
...@@ -127,10 +125,8 @@ my $response = $responder->{'_decode'}->serve($request, ...@@ -127,10 +125,8 @@ my $response = $responder->{'_decode'}->serve($request,
# Terminate the log capture so that we can print the response to STDOUT # Terminate the log capture so that we can print the response to STDOUT
# for the web server. # for the web server.
# #
print STDERR "\n\n" . $response; #print STDERR "\n\n" . $response;
#print STDERR time() . "\n"; LogEnd(0);
LogEnd();
print "Content-Type: text/xml\n\n" . $response; print "Content-Type: text/xml\n\n" . $response;
......
...@@ -104,7 +104,7 @@ if (!defined($request)) { ...@@ -104,7 +104,7 @@ if (!defined($request)) {
# Use libaudit to capture any output from libraries and programs. # Use libaudit to capture any output from libraries and programs.
# Send that to tbops so they can be fixed. # 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. # Create and set our RPC context for any calls we end up making.
...@@ -136,9 +136,8 @@ my $response = $responder->{'_decode'}->serve($request, ...@@ -136,9 +136,8 @@ my $response = $responder->{'_decode'}->serve($request,
# Terminate the log capture so that we can print the response to STDOUT # Terminate the log capture so that we can print the response to STDOUT
# for the web server. # for the web server.
# #
print STDERR "\n\n" . $response; #print STDERR "\n\n" . $response;
LogEnd(0);
LogEnd();
print "Content-Type: text/xml \n\n" . $response; print "Content-Type: text/xml \n\n" . $response;
exit(0); exit(0);
...@@ -104,15 +104,13 @@ if (!defined($request)) { ...@@ -104,15 +104,13 @@ if (!defined($request)) {
# Use libaudit to capture any output from libraries and programs. # Use libaudit to capture any output from libraries and programs.
# Send that to tbops so they can be fixed. # 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. # Create and set our RPC context for any calls we end up making.
# #
Genixmlrpc->SetContext(Genixmlrpc->Context($certificate)); Genixmlrpc->SetContext(Genixmlrpc->Context($certificate));
#print STDERR time() . "\n";
# Add stuff for log message if sent. # Add stuff for log message if sent.
AddAuditInfo("message", $request . "\n"); 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