small fixes

pull/1/head
orbiter 13 years ago
parent ce156a01ba
commit 67f2866cd0

@ -89,8 +89,9 @@ public class ConfigBasic {
}
// peer name settings
final String peerName = (post == null) ? sb.peers.mySeed().getName() : post.get("peername", "");
String peerName = (post == null) ? sb.peers.mySeed().getName() : post.get("peername", "");
if (peerName != null) peerName = peerName.replace(' ', '-');
// port settings
final long port;
if (post != null && post.getInt("port", 0) > 1023) {

@ -94,7 +94,7 @@ public class IndexControlRWIs_p {
prop.put("keyhash", "");
prop.put("result", "");
prop.put("cleanup", post == null || post.containsKey("maxReferencesLimit") ? 1 : 0);
prop.put("cleanup_solr", sb.index.fulltext().connectedSolr() ? 1 : 0);
prop.put("cleanup_solr", sb.index.fulltext().connectedRemoteSolr() ? 1 : 0);
// switch off all optional forms/lists
prop.put("searchresult", 0);

@ -64,7 +64,6 @@ public class IndexCreateQueues_p {
if (option == PROFILE) {
// search and delete the crawl profile (_much_ faster, independant of queue size)
// XXX: what to do about the annoying LOST PROFILE messages in the log?
CrawlProfile entry;
for (final byte[] handle: sb.crawler.getActive()) {
entry = sb.crawler.getActive(handle);

@ -345,7 +345,7 @@ public class CrawlQueues {
this.log.logSevere("Unsupported protocol in URL '" + url.toString());
}
} else {
this.log.logWarning(stats + ": LOST PROFILE HANDLE '" + urlEntry.profileHandle() + "' for URL " + urlEntry.url());
if (this.log.isFine()) this.log.logFine(stats + ": LOST PROFILE HANDLE '" + urlEntry.profileHandle() + "' for URL " + urlEntry.url());
}
}

@ -130,7 +130,7 @@ public class swfParser extends AbstractParser implements Parser {
// if an unexpected error occures just log the error and raise a new Parser.Failure
final String errorMsg = "Unable to parse the swf document '" + location + "':" + e.getMessage();
AbstractParser.log.logSevere(errorMsg);
//AbstractParser.log.logSevere(errorMsg);
throw new Parser.Failure(errorMsg, location);
}
}

Loading…
Cancel
Save