[Yanel-commits] rev 21097 - public/yanel/trunk/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources

michi at wyona.com michi at wyona.com
Fri Dec 22 10:27:49 CET 2006


Author: michi
Date: 2006-12-22 10:27:48 +0100 (Fri, 22 Dec 2006)
New Revision: 21097

Modified:
   public/yanel/trunk/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources/NutchResource.java
Log:
log messages cleaned

Modified: public/yanel/trunk/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources/NutchResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources/NutchResource.java	2006-12-22 09:27:22 UTC (rev 21096)
+++ public/yanel/trunk/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources/NutchResource.java	2006-12-22 09:27:48 UTC (rev 21097)
@@ -332,7 +332,7 @@
                 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                 transformer.transform(new StreamSource(inputStream), new StreamResult(byteArrayOutputStream));
                 inputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray());
-                log.error("language: " + language);
+                log.error("DEBUG: language: " + language);
                 i18nTransformer = new I18nTransformer(resourceBundle, language);
                 SAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();
                 saxParser.parse(inputStream, i18nTransformer);
@@ -576,7 +576,9 @@
         try {
             // Configuration nutchConf = NutchConfiguration.get(application);
             String urls = configuration.get("extension.ontology.urls");
-            log.error("DEBUG: URLS__> " + urls);
+            log.error("DEBUG: extension.ontology.urls: " + urls);
+
+/*
             // TODO: null is being returned!
             ontology = new org.apache.nutch.ontology.OntologyFactory(configuration).getOntology();
             if (urls==null || urls.trim().equals("")) {
@@ -585,9 +587,9 @@
                 log.error("is ontology null? : " + ontology);
                 ontology.load(urls.split("\\s+"));
             }
+*/
         } catch (Exception e) {
-            // ignored siliently
-            log.error("BLOODCLOT: " + e.getMessage(), e);
+            log.error(e.getMessage(), e);
         }
          
         List refineList = new ArrayList();
@@ -599,6 +601,8 @@
                 // refineList.add((String)iter.next());
                 refineList.add(nextItem);
             }
+        } else {
+            log.warn("Ontology is null");
         }
         return refineList;
     }
@@ -611,7 +615,7 @@
      */
     private StreamSource getXSLTStreamSource() throws Exception {
         String xsltPath = getRTI().getProperty("xslt");
-        log.error("DEBUG: XSLT: " + xsltPath);
+        log.debug("XSLT: " + xsltPath);
         if (xsltPath != null) {
             return new StreamSource(getRealm().getRepository().getInputStream(new org.wyona.yarep.core.Path(xsltPath)));
         } else {




More information about the Yanel-commits mailing list