File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -207,9 +207,6 @@ public Base(String[] args) throws Exception {
207207 BaseNoGui .getPlatform ().init ();
208208
209209 BaseNoGui .initPortableFolder ();
210- // This configure the logs root folder
211- System .out .println ("Set log4j store directory " + BaseNoGui .getSettingsFolder ().getAbsolutePath ());
212- System .setProperty ("log4j.dir" , BaseNoGui .getSettingsFolder ().getAbsolutePath ());
213210
214211 // Look for a possible "--preferences-file" parameter and load preferences
215212 BaseNoGui .initParameters (args );
@@ -218,6 +215,12 @@ public Base(String[] args) throws Exception {
218215 parser .parseArgumentsPhase1 ();
219216 commandLine = !parser .isGuiMode ();
220217
218+ // This configure the logs root folder
219+ if (parser .isGuiMode ()) {
220+ System .out .println ("Set log4j store directory " + BaseNoGui .getSettingsFolder ().getAbsolutePath ());
221+ }
222+ System .setProperty ("log4j.dir" , BaseNoGui .getSettingsFolder ().getAbsolutePath ());
223+
221224 BaseNoGui .checkInstallationFolder ();
222225
223226 // If no path is set, get the default sketchbook folder for this platform
You can’t perform that action at this time.
0 commit comments