Update of /cvsroot/freenet/freenet/src/freenet/node
In directory sc8-pr-cvs1:/tmp/cvs-serv31167/src/freenet/node
Modified Files:
Main.java Node.java
Log Message:
6251:
Fix occasional NPE in ConnectionHandler.
Changes to the README and the warning fproxy sends when it detect Internet Explorer,
mostly w.r.t. Opera. Contributed by an untraceable individual who wishes to remain
nameless.
Add logOverwrite config parameter.
Make the default insert key CHK@ and the default HTL 25.
Tyop fixes in comments.
Logging, toString(), indenting.
Index: Main.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/Main.java,v
retrieving revision 1.267
retrieving revision 1.268
diff -u -w -r1.267 -r1.268
--- Main.java 15 Oct 2003 21:15:48 -0000 1.267
+++ Main.java 16 Oct 2003 01:03:59 -0000 1.268
@@ -293,7 +293,8 @@
logFormat,
logDate,
thresh,
-
dontCheck);
+
dontCheck,
+
params.getBoolean("logOverwrite"));
} else {
loggerHook = new FileLoggerHook(System.err,
logFormat,
Index: Node.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/Node.java,v
retrieving revision 1.220
retrieving revision 1.221
diff -u -w -r1.220 -r1.221
--- Node.java 15 Oct 2003 21:15:48 -0000 1.220
+++ Node.java 16 Oct 2003 01:03:59 -0000 1.221
@@ -162,6 +162,7 @@
config.addOption("logRotate", 1, false, 1257);
config.addOption("logRotateUseNativeGzip",1,false,1258);
config.addOption("logRotateInterval", 1, "hour", 1259);
+ config.addOption("logOverwrite", 1, false, 1260);
// diagnostics options
config.addOption("diagnosticsPath", 1, "stats", 501);
@@ -786,6 +787,11 @@
config.argDesc ("logRotateInterval", "<minute|hour|week|month|year>");
config.shortDesc("logRotateInterval", "Time interval for logfile
rotation.");
+ // logOverwrite
+ config.setExpert("logOverwrite", true);
+ config.argDesc ("logOverwrite", "<yes|no>");
+ config.shortDesc("logOverwrite", "Whether to overwrite old log files;
otherwise they are appended to.");
+
// seedFile
config.argDesc ("seedFile", "<file>");
config.shortDesc ("seedFile", "initial node ref(s), for announcing");
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs