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/mappaint/Cascade.java

    r6142 r6248  
    1111import java.util.regex.Pattern;
    1212
     13import org.openstreetmap.josm.Main;
    1314import org.openstreetmap.josm.gui.mappaint.mapcss.CSSColors;
    1415import org.openstreetmap.josm.tools.Utils;
     
    4950        if (res == null) {
    5051            if (!suppressWarnings) {
    51                 System.err.println(String.format("Warning: unable to convert property %s to type %s: found %s of type %s!", key, klass, o, o.getClass()));
     52                Main.warn(String.format("Unable to convert property %s to type %s: found %s of type %s!", key, klass, o, o.getClass()));
    5253            }
    5354            return def;
Note: See TracChangeset for help on using the changeset viewer.