Author: ssmiweve
Date: 2008-01-23 08:43:26 +0100 (Wed, 23 Jan 2008)
New Revision: 6011
Modified:
trunk/view-control-spi/src/main/java/no/sesat/search/view/ImportPublish.java
Log:
added some logging to help identify the publishing fragments caching problem.
(it takes atleast an hour for changes to appear).
Modified:
trunk/view-control-spi/src/main/java/no/sesat/search/view/ImportPublish.java
===================================================================
---
trunk/view-control-spi/src/main/java/no/sesat/search/view/ImportPublish.java
2008-01-22 21:31:02 UTC (rev 6010)
+++
trunk/view-control-spi/src/main/java/no/sesat/search/view/ImportPublish.java
2008-01-23 07:43:26 UTC (rev 6011)
@@ -56,6 +56,7 @@
private static final int CACHE_CAPACITY = 1000;
private static final Logger LOG = Logger.getLogger(ImportPublish.class);
+ private static final Logger DUMP =
Logger.getLogger("no.sesat.search.Dump");
// Attributes ----------------------------------------------------
@@ -69,8 +70,8 @@
*
* @param page
* @param datamodel
- * @param out
- * @throws java.io.IOException
+ * @return
+ * @throws java.io.IOException
*/
public static String importPage(
final String page,
@@ -87,6 +88,7 @@
String content = "";
try{
content = (String) CACHE.getFromCache(cacheKey, REFRESH_PERIOD);
+ LOG.debug("found cached content for " + page);
} catch (NeedsRefreshException nre) {
@@ -104,6 +106,8 @@
content = builder.toString();
CACHE.putInCache(cacheKey, content);
updatedCache = true;
+
+ LOG.debug("new content for " + page);
}catch(IOException ioe){
content = (String) nre.getCacheContent();
@@ -115,6 +119,8 @@
}
}
}
+ if(DUMP.isInfoEnabled()){ DUMP.info("Content for " + page + " is \n" +
content); }
+
return content;
}
@@ -122,8 +128,10 @@
*
* @param page
* @param datamodel
- * @param out
- * @throws java.io.IOException
+ * @return
+ * @throws java.io.IOException
+ * @throws javax.xml.parsers.ParserConfigurationException
+ * @throws org.xml.sax.SAXException
*/
public static Document importXml(
final String page,
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits