mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 22:08:01 -05:00
* disable annoying logging
This commit is contained in:
parent
bc53307e8a
commit
022e8f660a
@ -7,9 +7,6 @@ import java.io.File;
|
|||||||
import java.util.prefs.Preferences;
|
import java.util.prefs.Preferences;
|
||||||
import java.util.prefs.PreferencesFactory;
|
import java.util.prefs.PreferencesFactory;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PreferencesFactory implementation that stores the preferences in a user-defined file. To use it, set the system
|
* PreferencesFactory implementation that stores the preferences in a user-defined file. To use it, set the system
|
||||||
@ -24,8 +21,6 @@ import org.slf4j.LoggerFactory;
|
|||||||
*/
|
*/
|
||||||
public class FilePreferencesFactory implements PreferencesFactory {
|
public class FilePreferencesFactory implements PreferencesFactory {
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(FilePreferencesFactory.class.getName());
|
|
||||||
|
|
||||||
Preferences rootPreferences;
|
Preferences rootPreferences;
|
||||||
|
|
||||||
public static final String SYSTEM_PROPERTY_FILE = "net.sourceforge.tuned.prefs.file";
|
public static final String SYSTEM_PROPERTY_FILE = "net.sourceforge.tuned.prefs.file";
|
||||||
@ -38,15 +33,12 @@ public class FilePreferencesFactory implements PreferencesFactory {
|
|||||||
|
|
||||||
public Preferences userRoot() {
|
public Preferences userRoot() {
|
||||||
if (rootPreferences == null) {
|
if (rootPreferences == null) {
|
||||||
log.debug("Instantiating root preferences");
|
|
||||||
|
|
||||||
rootPreferences = new FilePreferences(null, "");
|
rootPreferences = new FilePreferences(null, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
return rootPreferences;
|
return rootPreferences;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static File preferencesFile;
|
private static File preferencesFile;
|
||||||
|
|
||||||
|
|
||||||
@ -59,8 +51,6 @@ public class FilePreferencesFactory implements PreferencesFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
preferencesFile = new File(prefsFile).getAbsoluteFile();
|
preferencesFile = new File(prefsFile).getAbsoluteFile();
|
||||||
|
|
||||||
log.info("Preferences file is {}", preferencesFile);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return preferencesFile;
|
return preferencesFile;
|
||||||
|
Loading…
Reference in New Issue
Block a user