Changeset 8991 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
r8840 r8991 6 6 import java.io.IOException; 7 7 import java.nio.channels.FileLock; 8 import java.text.MessageFormat;9 8 import java.util.Properties; 10 9 import java.util.logging.Handler; … … 12 11 import java.util.logging.LogRecord; 13 12 import java.util.logging.Logger; 13 import java.util.logging.SimpleFormatter; 14 14 15 15 import org.apache.commons.jcs.access.CacheAccess; … … 76 76 // we need a separate handler from Main's, as we downgrade LEVEL.INFO to DEBUG level 77 77 jcsLog.addHandler(new Handler() { 78 final SimpleFormatter formatter = new SimpleFormatter(); 79 78 80 @Override 79 81 public void publish(LogRecord record) { 80 String msg = MessageFormat.format(record.getMessage(), record.getParameters());82 String msg = formatter.formatMessage(record); 81 83 if (record.getLevel().intValue() >= Level.SEVERE.intValue()) { 82 84 Main.error(msg);
Note:
See TracChangeset
for help on using the changeset viewer.