From 711f8dedd98f4d6fb6f99570c0611ff629eaaaa0 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Sat, 31 Jan 2015 15:10:45 +0000
Subject: [PATCH] console: disable changing log path

---
 .../java/src/net/i2p/router/web/ConfigLoggingHandler.java       | 2 ++
 apps/routerconsole/jsp/configlogging.jsp                        | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHandler.java b/apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHandler.java
index f1970e0447..e98528a965 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHandler.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHandler.java
@@ -126,6 +126,7 @@ public class ConfigLoggingHandler extends FormHandler {
             }
         }
         
+     /*** disable
         if ( (_filename != null) && (_filename.trim().length() > 0) ) {
             _filename = _filename.trim();
             String old = _context.logManager().getBaseLogfilename();
@@ -138,6 +139,7 @@ public class ConfigLoggingHandler extends FormHandler {
                               + " (note: will not take effect until next rotation)");
             }
         }
+      ***/
         
         if ( (_recordFormat != null) && (_recordFormat.trim().length() > 0) ) {
             _recordFormat = _recordFormat.trim();
diff --git a/apps/routerconsole/jsp/configlogging.jsp b/apps/routerconsole/jsp/configlogging.jsp
index 21cfb1750c..9e3be5cc76 100644
--- a/apps/routerconsole/jsp/configlogging.jsp
+++ b/apps/routerconsole/jsp/configlogging.jsp
@@ -27,7 +27,7 @@
  <div class="wideload">
       <table border="0" cellspacing="5">
         <tr><td class="mediumtags" align="right"><b><%=intl._("Log file")%>:</b></td>
-          <td><input type="text" name="logfilename" size="40" value="<jsp:getProperty name="logginghelper" property="logFilePattern" />" >
+          <td><input type="text" name="logfilename" size="40" disabled="disabled" title="<%=intl._("Edit {0} to change", "logger.config")%>" value="<jsp:getProperty name="logginghelper" property="logFilePattern" />" >
             <br> <i><%=intl._("(the symbol '@' will be replaced during log rotation)")%></i></td>
         </tr><tr><td class="mediumtags" align="right"><b><%=intl._("Log record format")%>:</b></td>
           <td><input type="text" name="logformat" size="20" value="<jsp:getProperty name="logginghelper" property="recordPattern" />" >
-- 
GitLab