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/command/WayNodesConflictResolverCommand.java

    r5903 r6248  
    99import javax.swing.Icon;
    1010
     11import org.openstreetmap.josm.Main;
    1112import org.openstreetmap.josm.data.conflict.Conflict;
    1213import org.openstreetmap.josm.data.osm.Node;
     
    5455        super.executeCommand();
    5556
    56         // replace the list of nodes of 'my' way by the list of merged
    57         // nodes
     57        // replace the list of nodes of 'my' way by the list of merged nodes
    5858        //
    5959        for (Node n:mergedNodeList) {
    6060            if (! getLayer().data.getNodes().contains(n)) {
    61                 System.out.println(tr("Main dataset does not include node {0}", n.toString()));
     61                Main.warn(tr("Main dataset does not include node {0}", n.toString()));
    6262            }
    6363        }
Note: See TracChangeset for help on using the changeset viewer.