Updated Branches: refs/heads/master 026768ea4 -> 1316f6759
WICKET-5376 Log the exception if the application cannot start properly Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/1316f675 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/1316f675 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/1316f675 Branch: refs/heads/master Commit: 1316f6759b0e503a7805fae63290ab34f2618945 Parents: 026768e Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Fri Sep 27 14:26:31 2013 +0200 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Fri Sep 27 14:27:12 2013 +0200 ---------------------------------------------------------------------- .../main/java/org/apache/wicket/protocol/http/WicketFilter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/1316f675/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java ---------------------------------------------------------------------- diff --git a/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java b/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java index 8b46792..9289d58 100644 --- a/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java +++ b/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java @@ -437,7 +437,8 @@ public class WicketFilter implements Filter { // #destroy() might not be called by the web container when #init() fails, // so destroy now - log.warn("initialization failed, destroying now"); + log.error(String.format("The initialization of an application with name '%s' has failed.", + filterConfig.getFilterName()), e); try { @@ -445,7 +446,7 @@ public class WicketFilter implements Filter } catch (Exception destroyException) { - log.warn("Unable to destroy after initialization failure", destroyException); + log.error("Unable to destroy after initialization failure", destroyException); } throw new ServletException(e);
