Author: cmailleux
Date: Fri Nov 23 11:55:54 2007
New Revision: 19273
URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D19273&repname=
=3Djahia
Log:
Resolve issue JAHIA-2608 by adding a new category for esiservice debugging =
to avoid starting treecache viewer listener if no really specified to do th=
at in log4j.xml file
Modified:
trunk/core/src/java/org/jahia/services/esi/EsiService.java
trunk/core/src/webapp/WEB-INF/etc/config/log4j.xml
Modified: trunk/core/src/java/org/jahia/services/esi/EsiService.java
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/trunk/core/src/java/o=
rg/jahia/services/esi/EsiService.java&rev=3D19273&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/core/src/java/org/jahia/services/esi/EsiService.java (original)
+++ trunk/core/src/java/org/jahia/services/esi/EsiService.java Fri Nov 23 1=
1:55:54 2007
@@ -72,6 +72,8 @@
=
private static org.apache.log4j.Logger logger =3D
org.apache.log4j.Logger.getLogger(EsiService.class);
+ private static org.apache.log4j.Logger treeCachelogger =3D
+ org.apache.log4j.Logger.getLogger("esiTreeCacheLogger");
=
//keeps track of all invalid content that must have their associated E=
SI Fragments/Templates invalidated
private final ConcurrentHashMap fieldsToInvalidate =3D new ConcurrentH=
ashMap();
@@ -153,14 +155,14 @@
//config.configure(cache, "treecache-esi.xml");
=
//init the TreeCache Swing visualisation GUI
- if (logger.isDebugEnabled())
+ if (treeCachelogger.isDebugEnabled())
cache.addTreeCacheListener(new TreeCacheView.MyListener());
=
cache.createService(); // not necessary, but is same as MBean =
lifecycle
cache.startService(); // kick start tree cache
=
//start the TreeCache Swing visualisation GUI (appears as a in=
dependent popup window)
- if (logger.isDebugEnabled()) {
+ if (treeCachelogger.isDebugEnabled()) {
TreeCacheView2 demo =3D new TreeCacheView2(cache);
demo.start();
logger.warn("********* esi ContentID TreeCacheViewer GUI s=
tarted *********");
Modified: trunk/core/src/webapp/WEB-INF/etc/config/log4j.xml
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/trunk/core/src/webapp=
/WEB-INF/etc/config/log4j.xml&rev=3D19273&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/core/src/webapp/WEB-INF/etc/config/log4j.xml (original)
+++ trunk/core/src/webapp/WEB-INF/etc/config/log4j.xml Fri Nov 23 11:55:54 =
2007
@@ -77,6 +77,14 @@
</category>
=
<!-- ESI debugging info -->
+ <category name=3D"esiTreeCacheLogger">
+ <!--
+ This category if turn to debug will try to display a window containing =
the cache data of esi
+ if your server do not have access to a screen or do not have X server i=
nstalled
+ you must not change this level to debug
+ -->
+ <priority value=3D"fatal"/>
+ </category>
<!--
<category name=3D"org.jahia.services.esi">
<priority value=3D"info"/>
_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list