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/mapcss/Selector.java

    r6175 r6248  
    55import java.util.regex.PatternSyntaxException;
    66
     7import org.openstreetmap.josm.Main;
    78import org.openstreetmap.josm.data.osm.Node;
    89import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    224225                    if (!c.applies(env)) return false;
    225226                } catch (PatternSyntaxException e) {
    226                     System.err.println("PatternSyntaxException while applying condition" + c +": "+e.getMessage());
     227                    Main.error("PatternSyntaxException while applying condition" + c +": "+e.getMessage());
    227228                    return false;
    228229                }
Note: See TracChangeset for help on using the changeset viewer.