Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added fail-over missing http proxy service (i.e. overload) and quiet mode
Michael Peter Christen68b040e31eb0
diff --git a/source/net/yacy/cora/util/Html2Image.java b/source/net/yacy/cora/util/Html2Image.javaindex db70a5ca1..6965b02bb 100644--- a/source/net/yacy/cora/util/Html2Image.java+++ b/source/net/yacy/cora/util/Html2Image.java@@ -72,8 +72,16 @@ public class Html2Image {* @return*/public static boolean writeWkhtmltopdf(String url, String proxy, File destination) {+ boolean success = writeWkhtmltopdfInternal(url, proxy, destination);+ if (success) return true;+ if (proxy == null) return false;+ ConcurrentLog.warn("Html2Image", "trying to load without proxy: " + url);+ return writeWkhtmltopdfInternal(url, null, destination);+ }++ private static boolean writeWkhtmltopdfInternal(String url, String proxy, File destination) {final File wkhtmltopdf = wkhtmltopdfMac.exists() ? wkhtmltopdfMac : wkhtmltopdfDebian;- String commandline = wkhtmltopdf.getAbsolutePath() + " --title " + url + (proxy == null ? " " : " --proxy " + proxy + " ") + (OS.isMacArchitecture ? "--load-error-handling ignore " : "--ignore-load-errors ") + url + " " + destination.getAbsolutePath();+ String commandline = wkhtmltopdf.getAbsolutePath() + " -q --title " + url + (proxy == null ? " " : " --proxy " + proxy + " ") + (OS.isMacArchitecture ? "--load-error-handling ignore " : "--ignore-load-errors ") + url + " " + destination.getAbsolutePath();try {List<String> message;if (!usexvfb) {