Default DEBUG env value to false, or read actual value instead of only checking for existence

This commit is contained in:
Moon
2025-09-18 08:54:28 -04:00
committed by GitHub
+3 -1
View File
@@ -65,7 +65,9 @@ public class Base {
* if an empty file named 'debug' is found in the settings folder.
* See implementation in createAndShowGUI().
*/
static public boolean DEBUG = System.getenv().containsKey("DEBUG");
static public boolean DEBUG = Boolean.parseBoolean(System.getenv().getOrDefault("DEBUG", "false"));
/** True if running via Commander. */
static private boolean commandLine;