From: Eric Covener Date: Sun, 7 Dec 2014 12:54:52 +0000 (+0000) Subject: dump fcgi headers with trace8 instead of debug+compile-time flag. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22c41acf8a10f8553dbca14652b8f56f4521d915;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/proxy/mod_proxy_fcgi.c b/modules/proxy/mod_proxy_fcgi.c index aeea21c18d0..915e3b10eaf 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);