From: Stefan Fritsch Date: Fri, 15 Oct 2010 18:36:22 +0000 (+0000) Subject: return early if we are not logging anyway X-Git-Tag: 2.3.9~315 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a9e6cd208fb48cae282477b6efe5f6dd0c1bd29;p=thirdparty%2Fapache%2Fhttpd.git return early if we are not logging anyway git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1023063 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index 1497f9d06f6..a7d6f7a8fdd 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -422,6 +422,9 @@ static void do_rewritelog(request_rec *r, int level, char *perdir, request_rec *req; va_list ap; + if (!APLOG_R_IS_LEVEL(r, APLOG_DEBUG + level)) + return; + rhost = ap_get_remote_host(r->connection, r->per_dir_config, REMOTE_NOLOOKUP, NULL); rname = ap_get_remote_logname(r);