Warn when using a legacy data path

This commit is contained in:
AsamK 2021-05-11 18:39:11 +02:00
parent 19c004e987
commit 0455d3e8a8

View file

@ -309,11 +309,13 @@ public class App {
var legacySettingsPath = new File(configPath, "signal"); var legacySettingsPath = new File(configPath, "signal");
if (legacySettingsPath.exists()) { if (legacySettingsPath.exists()) {
logger.warn("Using legacy data path \"{}\", please move it to \"{}\".", legacySettingsPath, dataPath);
return legacySettingsPath; return legacySettingsPath;
} }
legacySettingsPath = new File(configPath, "textsecure"); legacySettingsPath = new File(configPath, "textsecure");
if (legacySettingsPath.exists()) { if (legacySettingsPath.exists()) {
logger.warn("Using legacy data path \"{}\", please move it to \"{}\".", legacySettingsPath, dataPath);
return legacySettingsPath; return legacySettingsPath;
} }