Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59393 - sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/fcgi
From: lists.drrngrvy_at_[hidden]
Date: 2010-01-31 18:58:49


Author: drrngrvy
Date: 2010-01-31 18:58:49 EST (Sun, 31 Jan 2010)
New Revision: 59393
URL: http://svn.boost.org/trac/boost/changeset/59393

Log:
Use BOOST_CGI_NO_LOGGING in fcgi::client.
Text files modified:
   sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/fcgi/client.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/fcgi/client.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/fcgi/client.hpp (original)
+++ sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/fcgi/client.hpp 2010-01-31 18:58:49 EST (Sun, 31 Jan 2010)
@@ -178,7 +178,7 @@
     
     std::size_t total_buffer_size = static_cast<std::size_t>(header_.content_length());
     
-#ifndef NDEBUG
+#if !defined(BOOST_CGI_NO_LOGGING) && !defined(NDEBUG)
     if (ec)
       std::cerr<< "Error " << ec << ": " << ec.message() << '\n';
     else
@@ -188,10 +188,10 @@
         << " protocol) bytes (running total: "
         << total_sent_bytes_ << " bytes; "
         << total_sent_packets_ << " packets).\n";
-#endif // NDEBUG
+#endif // !defined(BOOST_CGI_NO_LOGGING) && !defined(NDEBUG)
 
     // Now remove the protocol overhead for the caller, who
- // doesn't want to know about them.
+ // doesn't want to count it.
     bytes_transferred -= fcgi::spec::header_length::value;
     // Check everything was written ok.
     if (!ec && bytes_transferred != total_buffer_size)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk