diff --git a/source/de/anomic/crawler/RobotsTxt.java b/source/de/anomic/crawler/RobotsTxt.java index e0381b51c..64c0f4535 100644 --- a/source/de/anomic/crawler/RobotsTxt.java +++ b/source/de/anomic/crawler/RobotsTxt.java @@ -70,7 +70,8 @@ public class RobotsTxt { this.syncObjects = new ConcurrentHashMap(); this.tables = worktables; try { - log.info("initiated robots table: " + this.tables.getHeap(WorkTables.TABLE_ROBOTS_NAME).getFile()); + this.tables.getHeap(WorkTables.TABLE_ROBOTS_NAME); + //log.info("initiated robots table: " + this.tables.getHeap(WorkTables.TABLE_ROBOTS_NAME).getFile()); } catch (final IOException e) { try { this.tables.getHeap(WorkTables.TABLE_ROBOTS_NAME).clear(); diff --git a/source/net/yacy/document/TextParser.java b/source/net/yacy/document/TextParser.java index 3dec938ba..d4a2ba225 100644 --- a/source/net/yacy/document/TextParser.java +++ b/source/net/yacy/document/TextParser.java @@ -135,7 +135,7 @@ public final class TextParser { if (prototypeMime != null) for (String ext: parser.supportedExtensions()) { ext = ext.toLowerCase(); final String s = ext2mime.get(ext); - if (s != null && !s.equals(prototypeMime)) log.logWarning("parser for extension '" + ext + "' was set to mime '" + s + "', overwriting with new mime '" + prototypeMime + "'."); + if (s != null && !s.equals(prototypeMime)) Log.logInfo("PARSER", "Parser for extension '" + ext + "' was set to mime '" + s + "', overwriting with new mime '" + prototypeMime + "'."); ext2mime.put(ext, prototypeMime); } diff --git a/source/net/yacy/kelondro/blob/HeapReader.java b/source/net/yacy/kelondro/blob/HeapReader.java index 251e5d435..8c6aa0b8a 100644 --- a/source/net/yacy/kelondro/blob/HeapReader.java +++ b/source/net/yacy/kelondro/blob/HeapReader.java @@ -663,13 +663,7 @@ public class HeapReader { * @return the length of the key */ public int keylength() { - assert (this.index != null) : "index == null; closeDate=" + this.closeDate + ", now=" + new Date(); - if (this.index == null) { - Log.logSevere("HeapReader", "this.index == null in keylength(); closeDate=" + this.closeDate + ", now=" + new Date() + this.heapFile == null ? "" : (" file = " + this.heapFile.toString())); - return 0; - } - if (this.index == null) return 0; - return this.index.row().primaryKeyLength; + return this.keylength; } /** diff --git a/source/net/yacy/upnp/DiscoveryAdvertisement.java b/source/net/yacy/upnp/DiscoveryAdvertisement.java index e088cebbc..f04eaf9c8 100644 --- a/source/net/yacy/upnp/DiscoveryAdvertisement.java +++ b/source/net/yacy/upnp/DiscoveryAdvertisement.java @@ -26,8 +26,8 @@ * prior written permission. For written permission, please contact * info@sbbi.net. * - * 5. Products derived from this software may not be called - * "SuperBonBon Industries", nor may "SBBI" appear in their name, + * 5. Products derived from this software may not be called + * "SuperBonBon Industries", nor may "SBBI" appear in their name, * without prior written permission of SuperBonBon Industries. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, @@ -42,7 +42,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * This software consists of voluntary contributions made by many individuals - * on behalf of SuperBonBon Industries. For more information on + * on behalf of SuperBonBon Industries. For more information on * SuperBonBon Industries, please see . */ package net.yacy.upnp; @@ -67,7 +67,7 @@ import org.apache.commons.logging.LogFactory; * The listener thread is set to only accept matching device description and broadcast message sender IP to * avoid a security flaw with the protocol. If you are not happy with such behaviour you can set the * net.yacy.upnp.ddos.matchip system property to false to avoid this check. - * + * * @author SuperBonBon * @version 1.0 */ @@ -123,7 +123,7 @@ public class DiscoveryAdvertisement implements Runnable /** * Registers an event category sent by UPNP devices - * + * * @param notificationEvent the event type, either DiscoveryAdvertisement.EVENT_SSDP_ALIVE or * DiscoveryAdvertisement.EVENT_SSDP_BYE_BYE * @param nt the type of device advertisement, upnp:rootdevice will return you all advertisement in @@ -162,7 +162,7 @@ public class DiscoveryAdvertisement implements Runnable /** * Unregisters an event category sent by UPNP devices - * + * * @param notificationEvent the event type, either DiscoveryAdvertisement.EVENT_SSDP_ALIVE or * DiscoveryAdvertisement.EVENT_SSDP_BYE_BYE * @param nt the type of device advertisement, upnp:rootdevice will unregister all advertisement in @@ -250,10 +250,11 @@ public class DiscoveryAdvertisement implements Runnable } catch ( SocketTimeoutException ex ) { // ignoring } catch ( IOException ioEx ) { - log.warn("IO Exception during UPNP DiscoveryAdvertisement messages listening thread"); + // fail silently + //log.warn("IO Exception during UPNP DiscoveryAdvertisement messages listening thread"); } catch ( Exception ex ) { - log - .warn("Fatal Error during UPNP DiscoveryAdvertisement messages listening thread, thread will exit"); + // fail silently + //log.warn("Fatal Error during UPNP DiscoveryAdvertisement messages listening thread, thread will exit"); this.inService = false; this.aliveRegistered.clear(); this.byeByeRegistered.clear();