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/preferences/SourceEditor.java

    r6106 r6248  
    12471247                        Matcher m = Pattern.compile("^\t([^:]+): *(.+)$").matcher(line);
    12481248                        if (! m.matches()) {
    1249                             System.err.println(tr(getStr(I18nString.ILLEGAL_FORMAT_OF_ENTRY), url, line));
     1249                            Main.error(tr(getStr(I18nString.ILLEGAL_FORMAT_OF_ENTRY), url, line));
    12501250                            continue;
    12511251                        }
     
    12911291                            sources.add(last = new ExtendedSourceEntry(m.group(1), m.group(2)));
    12921292                        } else {
    1293                             System.err.println(tr(getStr(I18nString.ILLEGAL_FORMAT_OF_ENTRY), url, line));
     1293                            Main.error(tr(getStr(I18nString.ILLEGAL_FORMAT_OF_ENTRY), url, line));
    12941294                        }
    12951295                    }
Note: See TracChangeset for help on using the changeset viewer.