diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-23 08:18:38 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-23 08:18:38 +0000 |
commit | 681567b28116421496c4b7560a5b70f9730b8a79 (patch) | |
tree | 527231756f6a291ba35a217e3cd880c2cf15e5e0 /sca-cpp/trunk/modules/http/httpd.hpp | |
parent | f55fe8a88efb11b57fcb393ce5958e5dcace24d7 (diff) |
Use HTTPD ap_log_error instead of stderr to log when running inside HTTPD, to get log piping and rotation to work.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1222604 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/http/httpd.hpp')
-rw-r--r-- | sca-cpp/trunk/modules/http/httpd.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sca-cpp/trunk/modules/http/httpd.hpp b/sca-cpp/trunk/modules/http/httpd.hpp index 06d53e28c2..f4e3767881 100644 --- a/sca-cpp/trunk/modules/http/httpd.hpp +++ b/sca-cpp/trunk/modules/http/httpd.hpp @@ -672,7 +672,6 @@ const char* debugOptional(const char* s) { * Log a header */ int debugHeader(unused void* r, const char* key, const char* value) { - gc_scoped_pool(); cdebug << " header key: " << key << ", value: " << value << endl; return 1; } @@ -681,7 +680,6 @@ int debugHeader(unused void* r, const char* key, const char* value) { * Log an environment variable */ int debugEnv(unused void* r, const char* key, const char* value) { - gc_scoped_pool(); cdebug << " var key: " << key << ", value: " << value << endl; return 1; } @@ -690,7 +688,6 @@ int debugEnv(unused void* r, const char* key, const char* value) { * Log a note. */ int debugNote(unused void* r, const char* key, const char* value) { - gc_scoped_pool(); cdebug << " note key: " << key << ", value: " << value << endl; return 1; } @@ -699,6 +696,8 @@ int debugNote(unused void* r, const char* key, const char* value) { * Log a request. */ const bool debugRequest(request_rec* r, const string& msg) { + if (!isDebugLog()) + return true; gc_scoped_pool(); cdebug << msg << ":" << endl; cdebug << " unparsed uri: " << debugOptional(r->unparsed_uri) << endl; |