Updated Branches: refs/heads/wicket-6.x 0ff926936 -> 9ad992b63
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/9ad992b6 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/9ad992b6 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/9ad992b6 Branch: refs/heads/wicket-6.x Commit: 9ad992b63c630127ca2f6276bd88cc4581546520 Parents: 0ff9269 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:26:31 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/9ad992b6/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 f40a0c9..1c87f0e 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 @@ -435,7 +435,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 { @@ -443,7 +444,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);
