From a216c436c6f9c21a15f09815e61584574223e6a4 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sat, 8 Oct 2011 07:36:56 +0000 Subject: [PATCH] Downgrade error log messages which accompany a 404 request status from loglevel error to info. List thread at http://mail-archives.apache.org/mod_mbox/httpd-dev/201110.mbox/%3Calpine.DEB.2.00.1110041948280.664@eru.sfritsch.de%3E PR: 35768 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1180328 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 4 ++++ modules/generators/mod_asis.c | 2 +- modules/mappers/mod_actions.c | 2 +- server/core.c | 6 +++--- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index 6bd318f778..f1a39afc6e 100644 --- a/CHANGES +++ b/CHANGES @@ -12,6 +12,10 @@ Changes with Apache 2.3.15 PR 51714. [Stefan Fritsch, Jim Jagielski, Ruediger Pluem, Eric Covener, ] + *) core, mod_actions, mod_asis: Downgrade error log messages which accompany + a 404 request status from loglevel error to info. PR: 35768. [Stefan + Fritsch] + *) core: Fix hook sorting with perl modules. PR: 45076. [Torsten Foertsch ] diff --git a/modules/generators/mod_asis.c b/modules/generators/mod_asis.c index 5c724c020e..fbf13965ec 100644 --- a/modules/generators/mod_asis.c +++ b/modules/generators/mod_asis.c @@ -44,7 +44,7 @@ static int asis_handler(request_rec *r) } if (r->finfo.filetype == APR_NOFILE) { - ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "File does not exist: %s", r->filename); return HTTP_NOT_FOUND; } diff --git a/modules/mappers/mod_actions.c b/modules/mappers/mod_actions.c index 1c44879f0d..e1691c98c7 100644 --- a/modules/mappers/mod_actions.c +++ b/modules/mappers/mod_actions.c @@ -187,7 +187,7 @@ static int action_handler(request_rec *r) if (action && (t = apr_table_get(conf->action_types, action))) { if (*t++ == '0' && r->finfo.filetype == APR_NOFILE) { - ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "File does not exist: %s", r->filename); return HTTP_NOT_FOUND; } diff --git a/server/core.c b/server/core.c index 8dfb1bb31a..6858cad0de 100644 --- a/server/core.c +++ b/server/core.c @@ -4216,7 +4216,7 @@ static int default_handler(request_rec *r) if (r->method_number == M_GET || r->method_number == M_POST) { if (r->finfo.filetype == APR_NOFILE) { - ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "File does not exist: %s", r->filename); return HTTP_NOT_FOUND; } @@ -4225,7 +4225,7 @@ static int default_handler(request_rec *r) * raw I/O on a dir. */ if (r->finfo.filetype == APR_DIR) { - ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "Attempt to serve directory: %s", r->filename); return HTTP_NOT_FOUND; } @@ -4234,7 +4234,7 @@ static int default_handler(request_rec *r) r->path_info && *r->path_info) { /* default to reject */ - ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "File does not exist: %s", apr_pstrcat(r->pool, r->filename, r->path_info, NULL)); return HTTP_NOT_FOUND; -- 2.40.0