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/tools/XmlObjectParser.java

    r6229 r6248  
    2424import javax.xml.validation.ValidatorHandler;
    2525
     26import org.openstreetmap.josm.Main;
    2627import org.openstreetmap.josm.io.MirroredInputStream;
    2728import org.xml.sax.Attributes;
     
    296297            } catch (SAXException e) {
    297298                // Exception very unlikely to happen, so no need to translate this
    298                 System.err.println("Cannot disable 'load-external-dtd' feature: "+e.getMessage());
     299                Main.error("Cannot disable 'load-external-dtd' feature: "+e.getMessage());
    299300            }
    300301            reader.parse(new InputSource(in));
Note: See TracChangeset for help on using the changeset viewer.