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/tools/Shortcut.java

    r5979 r6248  
    371371        if (potentialShortcut != null) {
    372372            // this always is a logic error in the hook
    373             System.err.println("CONFLICT WITH SYSTEM KEY "+shortText);
     373            Main.error("CONFLICT WITH SYSTEM KEY "+shortText);
    374374            return null;
    375375        }
     
    415415                    if ( findShortcut(k, newmodifier) == null ) {
    416416                        Shortcut newsc = new Shortcut(shortText, longText, requestedKey, m, k, newmodifier, false, false);
    417                         System.out.println(tr("Silent shortcut conflict: ''{0}'' moved by ''{1}'' to ''{2}''.",
     417                        Main.info(tr("Silent shortcut conflict: ''{0}'' moved by ''{1}'' to ''{2}''.",
    418418                            shortText, conflict.getShortText(), newsc.getKeyText()));
    419419                        newsc.saveDefault();
Note: See TracChangeset for help on using the changeset viewer.