Ignore:
Timestamp:
2013-09-23T16:47:50+02:00 (6 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)
Location:
trunk/src/org/openstreetmap/josm/data/projection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/AbstractProjection.java

    r6135 r6248  
    104104        return degree + (minute/60.0) + (second/3600.0);
    105105    }
    106 
    107     public void dump() {
    108         System.err.println("x_0="+x_0);
    109         System.err.println("y_0="+y_0);
    110         System.err.println("lon_0="+lon_0);
    111         System.err.println("k_0="+k_0);
    112         System.err.println("ellps="+ellps);
    113         System.err.println("proj="+proj);
    114         System.err.println("datum="+datum);
    115     }
    116 
    117106}
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r6135 r6248  
    138138                        inits.put("EPSG:" + m.group(1), Pair.create(name, m.group(2).trim()));
    139139                    } else {
    140                         System.err.println("Warning: failed to parse line from the epsg projection definition: "+line);
     140                        Main.warn("Failed to parse line from the EPSG projection definition: "+line);
    141141                    }
    142142                }
Note: See TracChangeset for help on using the changeset viewer.