You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2018/01/16 10:07:58 UTC

[Bug 62005] New: [req] Don't log notice messages when LogLevel is set higher

https://bz.apache.org/bugzilla/show_bug.cgi?id=62005

            Bug ID: 62005
           Summary: [req] Don't log notice messages when LogLevel is set
                    higher
           Product: Apache httpd-2
           Version: 2.4.29
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: ben.rubson@gmail.com
  Target Milestone: ---

Hi,

manual says :
"When logging to a regular file, messages of the level notice cannot be
suppressed and thus are always logged. However, this doesn't apply when logging
is done using syslog."

Any reason why notice level is logged even if LogLevel is set for example to
warn ? Seems rather strange.
server/log.c does not comment about this "limitation".

Could we think about moving to the "expected" behavior ; making Apache to drop
messages of notice level if LogLevel is set higher ?

And backport this tiny change to 2.4.x ?

Could be useful in some situations where we don't want these notice messages to
appear in the logs.

Thank you very much !

Best regards,

Ben

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62005] [req] Don't log notice messages when LogLevel is set higher

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62005

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #1 from Eric Covener <co...@gmail.com> ---
as-is I would close this:  it's the design and there's no telling how many
NOTICE level messages are out there expecting to be logged at any LogLevel.

If someone wants to develop an opt-in patch that alters the behavior more power
to them.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62005] [req] Don't log notice messages when LogLevel is set higher

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62005

Ben RUBSON <be...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #2 from Ben RUBSON <be...@gmail.com> ---
Thank you Eric for your answer.
Understood, as per the design some messages (the NOTICE ones) need then to be
logged whatever ErrorLevel is.
What is strange it that this behavior depends on the log provider.
Anyway, I then close this feature request.
Thank you !

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org