Skip to content

Commit 8104f18

Browse files
author
Stefan Fritsch
committed
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
1 parent 701c037 commit 8104f18

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Changes with Apache 2.3.15
1212
PR 51714. [Stefan Fritsch, Jim Jagielski, Ruediger Pluem, Eric Covener,
1313
<lowprio20 gmail.com>]
1414

15+
*) core, mod_actions, mod_asis: Downgrade error log messages which accompany
16+
a 404 request status from loglevel error to info. PR: 35768. [Stefan
17+
Fritsch]
18+
1519
*) core: Fix hook sorting with perl modules. PR: 45076. [Torsten Foertsch
1620
<torsten foertsch gmx net>]
1721

modules/generators/mod_asis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static int asis_handler(request_rec *r)
4444
}
4545

4646
if (r->finfo.filetype == APR_NOFILE) {
47-
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
47+
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
4848
"File does not exist: %s", r->filename);
4949
return HTTP_NOT_FOUND;
5050
}

modules/mappers/mod_actions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static int action_handler(request_rec *r)
187187

188188
if (action && (t = apr_table_get(conf->action_types, action))) {
189189
if (*t++ == '0' && r->finfo.filetype == APR_NOFILE) {
190-
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
190+
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
191191
"File does not exist: %s", r->filename);
192192
return HTTP_NOT_FOUND;
193193
}

server/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4216,7 +4216,7 @@ static int default_handler(request_rec *r)
42164216

42174217
if (r->method_number == M_GET || r->method_number == M_POST) {
42184218
if (r->finfo.filetype == APR_NOFILE) {
4219-
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
4219+
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
42204220
"File does not exist: %s", r->filename);
42214221
return HTTP_NOT_FOUND;
42224222
}
@@ -4225,7 +4225,7 @@ static int default_handler(request_rec *r)
42254225
* raw I/O on a dir.
42264226
*/
42274227
if (r->finfo.filetype == APR_DIR) {
4228-
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
4228+
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
42294229
"Attempt to serve directory: %s", r->filename);
42304230
return HTTP_NOT_FOUND;
42314231
}
@@ -4234,7 +4234,7 @@ static int default_handler(request_rec *r)
42344234
r->path_info && *r->path_info)
42354235
{
42364236
/* default to reject */
4237-
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
4237+
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
42384238
"File does not exist: %s",
42394239
apr_pstrcat(r->pool, r->filename, r->path_info, NULL));
42404240
return HTTP_NOT_FOUND;

0 commit comments

Comments
 (0)