SettingsManager: Log "Settings saved"

This commit is contained in:
Sergey Ponomarev
2026-07-28 16:22:59 +03:00
parent 6219a463f3
commit 4b7efbc27a

View File

@ -78,7 +78,7 @@ public class SettingsManager {
Log.error("Error saving settings.", e); Log.error("Error saving settings.", e);
return; return;
} }
Log.debug("Settings saved"); Log.warning("Settings saved");
} }
/** /**
@ -104,11 +104,14 @@ public class SettingsManager {
File globalSettingsFile = new File("spark.properties"); File globalSettingsFile = new File("spark.properties");
if (globalSettingsFile.exists()) { if (globalSettingsFile.exists()) {
try { try {
Log.warning("Override Spark settings from " + globalSettingsFile.getAbsolutePath());
props.load(Files.newInputStream(globalSettingsFile.toPath())); props.load(Files.newInputStream(globalSettingsFile.toPath()));
migrateProperties(props, defaults); migrateProperties(props, defaults);
} catch (IOException e) { } catch (IOException e) {
Log.error(e); Log.error("Unable to load Spark settings", e);
} }
} else {
Log.warning("Spark settings file not found");
} }
return new LocalPreferences(props); return new LocalPreferences(props);
} }