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/data/osm/DataSet.java

    r5881 r6248  
    799799        OsmPrimitive result = getPrimitiveById(primitiveId);
    800800        if (result == null) {
    801             System.out.println(tr("JOSM expected to find primitive [{0} {1}] in dataset but it is not there. Please report this "
     801            Main.warn(tr("JOSM expected to find primitive [{0} {1}] in dataset but it is not there. Please report this "
    802802                    + "at http://josm.openstreetmap.de/. This is not a critical error, it should be safe to continue in your work.",
    803803                    primitiveId.getType(), Long.toString(primitiveId.getUniqueId())));
Note: See TracChangeset for help on using the changeset viewer.