Changeset 30859 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CacheControl.java
- Timestamp:
- 2014-12-19T17:12:01+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CacheControl.java
r30738 r30859 92 92 } 93 93 if (size > (long)cacheSize*1024*1024) { 94 System.out.println("Delete oldest file \""+ files[oldestFile].getName()94 Main.info("Delete oldest file \""+ files[oldestFile].getName() 95 95 + "\" in cache dir to stay under the limit of " + cacheSize + " MB."); 96 96 files[oldestFile].delete(); … … 126 126 } 127 127 } catch (Exception e) { 128 e.printStackTrace(System.out);128 Main.error(e); 129 129 } 130 130 return false; … … 135 135 delete(new File(CadastrePlugin.cacheDir + wmsLayer.getName() + "." + WMSFileExtension())); 136 136 } catch (Exception e) { 137 e.printStackTrace(System.out);137 Main.error(e); 138 138 } 139 139 } 140 140 141 141 private void delete(File file) { 142 System.out.println("Delete file "+file);142 Main.info("Delete file "+file); 143 143 if (file.exists()) 144 144 file.delete(); … … 155 155 successfulRead = wmsLayer.read(file, ois, currentLambertZone); 156 156 } catch (Exception ex) { 157 ex.printStackTrace(System.out);157 Main.error(ex); 158 158 JOptionPane.showMessageDialog(Main.parent, tr("Error loading file.\nProbably an old version of the cache file."), tr("Error"), JOptionPane.ERROR_MESSAGE); 159 159 return false; … … 211 211 } 212 212 try {wait();} catch (InterruptedException e) { 213 e.printStackTrace(System.out);213 Main.error(e); 214 214 } 215 215 }
Note:
See TracChangeset
for help on using the changeset viewer.
