removed unimportant warnings

pull/1/head
Michael Peter Christen 13 years ago
parent f7c43e964c
commit de3ef8ad73

@ -70,7 +70,8 @@ public class RobotsTxt {
this.syncObjects = new ConcurrentHashMap<String, DomSync>();
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();

@ -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);
}

@ -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;
}
/**

@ -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 <http://www.sbbi.net/>.
*/
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 <a href="mailto:superbonbon@sbbi.net">SuperBonBon</a>
* @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();

Loading…
Cancel
Save