ignore old DebugMode logs to avoid chatty console activity

This commit is contained in:
Ben Fry
2021-07-28 20:33:52 -04:00
parent 8a36e95b0e
commit ca15be6ab1
2 changed files with 8 additions and 7 deletions
+6 -6
View File
@@ -159,12 +159,12 @@ public class Base {
// Set the debug flag based on a file being present in the settings folder
File debugFile = getSettingsFile("debug");
/*
if (debugFile.isDirectory()) {
// if it's a directory, it's a leftover from older releases, clear it
Util.removeDir(debugFile);
} else*/
if (debugFile.exists()) {
// If it's a directory, it's a leftover from much older releases
// (2.x? 3.x?) that wrote DebugMode.log files into this directory.
// Could remove the directory, but it's harmless enough that it's
// not worth deleting files in case something could go wrong.
if (debugFile.exists() && debugFile.isFile()) {
DEBUG = true;
}
+2 -1
View File
@@ -1,5 +1,6 @@
1276 (4.0a7)
X really chatty console messages for people with old settings directories
X ignore 'debug' entry in prefs dir if it's a leftover DebugMode directory
Sam updates
X can we get rid of pdexEnabled? does the current code work w/ java tabs?