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/remotecontrol/handler/LoadObjectHandler.java

    r6091 r6248  
    5050    protected void handleRequest() throws RequestHandlerErrorException, RequestHandlerBadRequestException {
    5151        if (!PermissionPrefWithDefault.LOAD_DATA.isAllowed()) {
    52             System.out.println("RemoteControl: download forbidden by preferences");
     52            Main.info("RemoteControl: download forbidden by preferences");
    5353        }
    5454        if (!ps.isEmpty()) {
     
    8888                ps.add(SimplePrimitiveId.fromString(i));
    8989            } catch (IllegalArgumentException e) {
    90                 System.out.println("RemoteControl: invalid selection '"+i+"' ignored");
     90                Main.warn("RemoteControl: invalid selection '"+i+"' ignored");
    9191            }
    9292        }
Note: See TracChangeset for help on using the changeset viewer.