Ignore:
Timestamp:
2013-09-23T16:47:50+02:00 (12 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/MapCSSParser.jj

    r5705 r6248  
    2727import org.openstreetmap.josm.tools.Pair;
    2828import org.openstreetmap.josm.tools.Utils;
     29import org.openstreetmap.josm.Main;
    2930
    3031public class MapCSSParser {
     
    573574    }
    574575   
    575     System.err.println("Skipping to the next rule, because of an error:");
    576     System.err.println(e);
     576    Main.error("Skipping to the next rule, because of an error:");
     577    Main.error(e);
    577578    if (sheet != null) {
    578579        sheet.logError(e);
     
    598599                t.image.contains("\n")) {
    599600            ParseException e = new ParseException(String.format("Warning: end of line while reading an unquoted string at line %s column %s.", t.beginLine, t.beginColumn));
    600             System.err.println(e);
     601            Main.error(e);
    601602            if (sheet != null) {
    602603                sheet.logError(e);
Note: See TracChangeset for help on using the changeset viewer.