You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by ka...@apache.org on 2017/09/28 07:21:39 UTC
[5/9] storm git commit: [STORM-2758] fix: logviewer_search page not
found
[STORM-2758] fix: logviewer_search page not found
Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/ec77f66c
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/ec77f66c
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/ec77f66c
Branch: refs/heads/master
Commit: ec77f66c124e1bdb499b9b80a9778aaa2fa9f9af
Parents: db510ae
Author: Ethan Li <et...@gmail.com>
Authored: Tue Sep 26 13:32:58 2017 -0500
Committer: Ethan Li <et...@gmail.com>
Committed: Tue Sep 26 13:42:57 2017 -0500
----------------------------------------------------------------------
.../java/org/apache/storm/daemon/logviewer/LogviewerServer.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/storm/blob/ec77f66c/storm-webapp/src/main/java/org/apache/storm/daemon/logviewer/LogviewerServer.java
----------------------------------------------------------------------
diff --git a/storm-webapp/src/main/java/org/apache/storm/daemon/logviewer/LogviewerServer.java b/storm-webapp/src/main/java/org/apache/storm/daemon/logviewer/LogviewerServer.java
index 0802015..5bceb21 100644
--- a/storm-webapp/src/main/java/org/apache/storm/daemon/logviewer/LogviewerServer.java
+++ b/storm-webapp/src/main/java/org/apache/storm/daemon/logviewer/LogviewerServer.java
@@ -55,7 +55,8 @@ import org.slf4j.LoggerFactory;
public class LogviewerServer implements AutoCloseable {
private static final Logger LOG = LoggerFactory.getLogger(LogviewerServer.class);
private static final Meter meterShutdownCalls = StormMetricsRegistry.registerMeter("drpc:num-shutdown-calls");
- public static final String STATIC_RESOURCE_DIRECTORY_PATH = "./public";
+ private static final String stormHome = System.getProperty("storm.home");
+ public static final String STATIC_RESOURCE_DIRECTORY_PATH = stormHome + "/public";
private static Server mkHttpServer(Map<String, Object> conf) {
Integer logviewerHttpPort = (Integer) conf.get(DaemonConfig.LOGVIEWER_PORT);