This is an automated email from the ASF dual-hosted git repository.
lewismc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git
The following commit(s) were added to refs/heads/master by this push:
new d6875e1 NUTCH-2882 Configure NutchUiServer for DEPLOYMENT and improve
logging (#690)
d6875e1 is described below
commit d6875e13515328b759e204a6b4bba8725f2ea7c2
Author: Lewis John McGibbney <[email protected]>
AuthorDate: Mon Jun 28 09:12:27 2021 -0700
NUTCH-2882 Configure NutchUiServer for DEPLOYMENT and improve logging (#690)
---
conf/log4j.properties | 2 ++
src/java/org/apache/nutch/webui/NutchUiApplication.java | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/conf/log4j.properties b/conf/log4j.properties
index 67311d1..7b010cb 100644
--- a/conf/log4j.properties
+++ b/conf/log4j.properties
@@ -60,9 +60,11 @@
log4j.logger.org.apache.nutch.scoring.webgraph.NodeDumper=INFO,cmdstdout
log4j.logger.org.apache.nutch.segment.SegmentChecker=INFO,cmdstdout
log4j.logger.org.apache.nutch.segment.SegmentMerger=INFO,cmdstdout
log4j.logger.org.apache.nutch.segment.SegmentReader=INFO,cmdstdout
+log4j.logger.org.apache.nutch.service.NutchServer=INFO,cmdstdout
log4j.logger.org.apache.nutch.tools.FreeGenerator=INFO,cmdstdout
log4j.logger.org.apache.nutch.util.domain.DomainStatistics=INFO,cmdstdout
log4j.logger.org.apache.nutch.util.SitemapProcessor=INFO,cmdstdout
+log4j.logger.org.apache.nutch.webui.NutchUiServer=INFO,cmdstdout
log4j.logger.org.apache.nutch=INFO
log4j.logger.org.apache.hadoop=WARN
diff --git a/src/java/org/apache/nutch/webui/NutchUiApplication.java
b/src/java/org/apache/nutch/webui/NutchUiApplication.java
index 67ac281..fc08874 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
implements
new 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());