* disable annoying logging

This commit is contained in:
Reinhard Pointner 2012-11-19 07:01:23 +00:00
parent bc53307e8a
commit 022e8f660a
1 changed files with 0 additions and 10 deletions

View File

@ -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;