From 3ec0da591289485dd3ae90f7f6d474d04b2dca40 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Sun, 7 Dec 2014 12:54:52 +0000 Subject: [PATCH] dump fcgi headers with trace8 instead of debug+compile-time flag. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1643672 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_fcgi.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/proxy/mod_proxy_fcgi.c b/modules/proxy/mod_proxy_fcgi.c index aeea21c18d..915e3b10ea 100644 --- a/modules/proxy/mod_proxy_fcgi.c +++ b/modules/proxy/mod_proxy_fcgi.c @@ -221,17 +221,15 @@ static apr_status_t send_environment(proxy_conn_rec *conn, request_rec *r, envarr = apr_table_elts(r->subprocess_env); elts = (const apr_table_entry_t *) envarr->elts; -#ifdef FCGI_DUMP_ENV_VARS - { + if (APLOGrtrace8(r)) { int i; for (i = 0; i < envarr->nelts; ++i) { - ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01062) + ap_log_rerror(APLOG_MARK, APLOG_TRACE8, 0, r, APLOGNO(01062) "sending env var '%s' value '%s'", elts[i].key, elts[i].val); } } -#endif /* Send envvars over in as many FastCGI records as it takes, */ next_elem = 0; /* starting with the first one */ @@ -511,10 +509,8 @@ static apr_status_t dispatch(proxy_conn_rec *conn, proxy_dir_conf *conf, break; } -#ifdef FCGI_DUMP_HEADERS - ap_log_rdata(APLOG_MARK, APLOG_DEBUG, r, "FastCGI header", + ap_log_rdata(APLOG_MARK, APLOG_TRACE8, r, "FastCGI header", farray, AP_FCGI_HEADER_LEN, 0); -#endif ap_fcgi_header_fields_from_array(&version, &type, &rid, &clen, &plen, farray); -- 2.40.0