Ignore:
Timestamp:
2013-09-23T16:47:50+02:00 (11 years ago)
Author:
Don-vip
Message:

Rework console output:

  • new log level "error"
  • Replace nearly all calls to system.out and system.err to Main.(error|warn|info|debug)
  • Remove some unnecessary debug output
  • Some messages are modified (removal of "Info", "Warning", "Error" from the message itself -> notable i18n impact but limited to console error messages not seen by the majority of users, so that's ok)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java

    r6209 r6248  
    558558
    559559        } catch (Exception ex) { // (other exceptions, e.g. #5271)
    560             System.err.println("Error reading EXIF from file: "+ex);
     560            Main.error("Error reading EXIF from file: "+ex);
    561561            e.setExifCoor(null);
    562562            e.setPos(null);
     
    651651
    652652                if (toDelete.getFile().delete()) {
    653                     System.out.println("File "+toDelete.getFile().toString()+" deleted. ");
     653                    Main.info("File "+toDelete.getFile().toString()+" deleted. ");
    654654                } else {
    655655                    JOptionPane.showMessageDialog(
Note: See TracChangeset for help on using the changeset viewer.