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/io/NmeaReader.java

    r6087 r6248  
    247247                byte[] chb = chkstrings[0].getBytes();
    248248                int chk=0;
    249                 for(int i = 1; i < chb.length; i++) {
     249                for (int i = 1; i < chb.length; i++) {
    250250                    chk ^= chb[i];
    251251                }
    252                 if(Integer.parseInt(chkstrings[1].substring(0,2),16) != chk) {
    253                     //System.out.println("Checksum error");
     252                if (Integer.parseInt(chkstrings[1].substring(0,2),16) != chk) {
    254253                    ps.checksum_errors++;
    255254                    ps.p_Wp=null;
     
    447446            return true;
    448447
    449         } catch(RuntimeException x) {
     448        } catch (RuntimeException x) {
    450449            // out of bounds and such
    451             // x.printStackTrace();
    452             // System.out.println("Malformed line: "+s.toString().trim());
    453450            ps.malformed++;
    454451            ps.p_Wp=null;
Note: See TracChangeset for help on using the changeset viewer.