mirror of
https://github.com/igniterealtime/Spark.git
synced 2026-08-18 02:56:24 +00:00
SettingsManager: Log "Settings saved"
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user