You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2015/09/30 13:33:25 UTC
svn commit: r1706004 -
/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
Author: tandraschko
Date: Wed Sep 30 11:33:25 2015
New Revision: 1706004
URL: http://svn.apache.org/viewvc?rev=1706004&view=rev
Log:
MYFACES-4014 Log required startup time
Modified:
myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java?rev=1706004&r1=1706003&r2=1706004&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java (original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java Wed Sep 30 11:33:25 2015
@@ -104,6 +104,8 @@ public class StartupServletContextListen
Boolean b = (Boolean) _servletContext.getAttribute(FACES_INIT_DONE);
if (b == null || b.booleanValue() == false)
{
+ long start = System.currentTimeMillis();
+
if (_facesInitializer == null)
{
_facesInitializer = FacesInitializerFactory.getFacesInitializer(_servletContext);
@@ -125,6 +127,10 @@ public class StartupServletContextListen
//Destroy startup FacesContext
_facesInitializer.destroyStartupFacesContext(facesContext);
+
+ log.log(Level.INFO, "MyFaces Core has started, it took ["
+ + (System.currentTimeMillis() - start)
+ + "] ms.");
}
else
{