logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Helger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-1262) Log4jServletContextListener unnecessary exception
Date Fri, 04 Mar 2016 22:27:40 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15180657#comment-15180657
] 

Philip Helger commented on LOG4J2-1262:
---------------------------------------

Confirmed, thanks!

> Log4jServletContextListener unnecessary exception
> -------------------------------------------------
>
>                 Key: LOG4J2-1262
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1262
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Web/Servlet
>    Affects Versions: 2.5
>            Reporter: Philip Helger
>            Assignee: Matt Sicker
>             Fix For: 2.6
>
>
> {{Log4jServletContextListener.contextDestroyed}} throws an {{IllegalStateException}}
if contextInitialized was never called. In certain rare situations where a server startup
fails due to previous errors this Exception is unnecessary.
> So I suggest to now throw an Exception and instead log it as a warning and end the method
gracefully.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message