diff --git a/apps/routerconsole/java/src/net/i2p/router/web/ConfigStatsHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/ConfigStatsHelper.java
index 254a20728..61d496933 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/ConfigStatsHelper.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web/ConfigStatsHelper.java
@@ -59,8 +59,16 @@ public class ConfigStatsHelper extends HelperBase {
_filters.add(tok.nextToken().trim());
}
- public ConfigStatsHelper() {}
-
+ /**
+ * Just hide for everybody unless already set.
+ * To enable set advanced config stat.logFilters=foo before starting...
+ * it has to be set at startup anyway for logging to be enabled at all
+ * @since 0.9
+ */
+ public boolean shouldShowLog() {
+ return !_filters.isEmpty();
+ }
+
public String getFilename() { return _context.statManager().getStatFile(); }
/**
diff --git a/apps/routerconsole/jsp/configstats.jsp b/apps/routerconsole/jsp/configstats.jsp
index 7e548a113..94cf96833 100644
--- a/apps/routerconsole/jsp/configstats.jsp
+++ b/apps/routerconsole/jsp/configstats.jsp
@@ -78,8 +78,19 @@ function toggleAll(category)
checked="true" <% } %> >
(<%=intl._("change requires restart to take effect")%>)
- <%=intl._("Stat file")%>:
-<%=intl._("Filter")%>: (<%=intl._("toggle all")%>)
| <%=intl._("Log")%> | -<%=intl._("Graph")%> | +<% + + if (shouldShowLog) { + +%><%=intl._("Log")%> | +<% + + } // shouldShowLog + +%><%=intl._("Graph")%> | |
| + | ||||
| checked="true" <% } %> > | -+<% + + } // shouldShowLog + +%> | <% if (statshelper.getCurrentCanBeGraphed()) { %> checked="true" <% } %> ><% } %> | <%=statshelper.getCurrentStatName()%>: <%=statshelper.getCurrentStatDescription()%> | |
| <%=intl._("Advanced filter")%>: | ||||
| +<% + + } // shouldShowLog + +%> | ||||
| " > " > | ||||