Author: toad
Date: 2006-06-16 16:01:48 +0000 (Fri, 16 Jun 2006)
New Revision: 9230

Modified:
   trunk/freenet/src/freenet/node/Node.java
Log:
comments. don't wipe the old logs unless we were running testnet and are now 
running darknet.

Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java    2006-06-16 14:27:47 UTC (rev 
9229)
+++ trunk/freenet/src/freenet/node/Node.java    2006-06-16 16:01:48 UTC (rev 
9230)
@@ -1140,8 +1140,10 @@
                        Logger.normal(this, s);
                        System.err.println(s);
                        testnetEnabled = false;
-                       FileLoggerHook flh = 
logConfigHandler.getFileLoggerHook();
-                       if(flh != null) flh.deleteAllOldLogFiles();
+                       if(wasTestnet) {
+                               FileLoggerHook flh = 
logConfigHandler.getFileLoggerHook();
+                               if(flh != null) flh.deleteAllOldLogFiles();
+                       }
                }

                if(wasTestnet != testnetEnabled) {
@@ -1593,10 +1595,6 @@
                        throw new IllegalArgumentException("Not a CHK or SSK: 
"+key);
        }

-       /**
-        * Really trivially simple client interface.
-        * Either it succeeds or it doesn't.
-        */
        ClientCHKBlock realGetCHK(ClientCHK key, boolean localOnly, boolean 
cache, boolean ignoreStore) throws LowLevelGetException {
                long startTime = System.currentTimeMillis();
                long uid = random.nextLong();
@@ -1684,10 +1682,6 @@
                }
        }

-       /**
-        * Really trivially simple client interface.
-        * Either it succeeds or it doesn't.
-        */
        ClientSSKBlock realGetSSK(ClientSSK key, boolean localOnly, boolean 
cache, boolean ignoreStore) throws LowLevelGetException {
                long startTime = System.currentTimeMillis();
                long uid = random.nextLong();


Reply via email to