Apache Nutch is an extensible and scalable web crawler
NUTCH-2882 Configure NutchUiServer for DEPLOYMENT and improve logging (#690)
Lewis John McGibbneyd6875e135153
diff --git a/conf/log4j.properties b/conf/log4j.propertiesindex 67311d1bc..7b010cbc1 100644--- a/conf/log4j.properties+++ b/conf/log4j.properties@@ -60,9 +60,11 @@ log4j.logger.org.apache.nutch.scoring.webgraph.NodeDumper=INFO,cmdstdoutlog4j.logger.org.apache.nutch.segment.SegmentChecker=INFO,cmdstdoutlog4j.logger.org.apache.nutch.segment.SegmentMerger=INFO,cmdstdoutlog4j.logger.org.apache.nutch.segment.SegmentReader=INFO,cmdstdout+log4j.logger.org.apache.nutch.service.NutchServer=INFO,cmdstdoutlog4j.logger.org.apache.nutch.tools.FreeGenerator=INFO,cmdstdoutlog4j.logger.org.apache.nutch.util.domain.DomainStatistics=INFO,cmdstdoutlog4j.logger.org.apache.nutch.util.SitemapProcessor=INFO,cmdstdout+log4j.logger.org.apache.nutch.webui.NutchUiServer=INFO,cmdstdoutlog4j.logger.org.apache.nutch=INFOlog4j.logger.org.apache.hadoop=WARNdiff --git a/src/java/org/apache/nutch/webui/NutchUiApplication.java b/src/java/org/apache/nutch/webui/NutchUiApplication.javaindex 67ac28112..fc088744d 100644--- a/src/java/org/apache/nutch/webui/NutchUiApplication.java+++ b/src/java/org/apache/nutch/webui/NutchUiApplication.java@@ -18,6 +18,7 @@ package org.apache.nutch.webui;import org.apache.nutch.webui.pages.DashboardPage;import org.apache.nutch.webui.pages.assets.NutchUiCssReference;+import org.apache.wicket.RuntimeConfigurationType;import org.apache.wicket.markup.html.WebPage;import org.apache.wicket.protocol.http.WebApplication;import org.apache.wicket.spring.injection.annot.SpringComponentInjector;@@ -61,6 +62,11 @@ public class NutchUiApplication extends WebApplication implementsnew SpringComponentInjector(this, context));}+ @Override+ public RuntimeConfigurationType getConfigurationType() {+ return RuntimeConfigurationType.DEPLOYMENT;+ }+private void configureTheme(BootstrapSettings settings) {Theme theme = new Theme(THEME_NAME, BootstrapCssReference.instance(),FontAwesomeCssReference.instance(), NutchUiCssReference.instance());