Bug 64661

Summary: Include error should not always be logged as error.
Product: Apache httpd-2 Reporter: Rob <apache>
Component: mod_includeAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Rob 2020-08-11 14:47:23 UTC

In my opinion, an include error in an <!--#include --> element should not be logged as 'error' if it was resolved by an 'onerror' attribute, but rather as 'warning'. The initial error was dealt with, so it's no longer an error.


<!--#include virtual="no.shtml" --> : 'error'

<!--#include virtual="no.shtml" onerror="yes.shtml" --> : 'warning'

<!--#include virtual="no.shtml" onerror="also-no.shtml" --> : 'error'

Practical motivation: often, the 'onerror' attribute is an acceptable way to work around non-existing files, which means they do not require my direct attention; having them logged as errors complicates finding the real errors, that really require my direct attention, in the log file.

Thanks for considering,