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/io/imagery/HTMLGrabber.java

    r4745 r6248  
    3030        String urlstring = url.toExternalForm();
    3131
    32         System.out.println("Grabbing HTML " + (attempt > 1? "(attempt " + attempt + ") ":"") + url);
     32        Main.info("Grabbing HTML " + (attempt > 1? "(attempt " + attempt + ") ":"") + url);
    3333
    3434        ArrayList<String> cmdParams = new ArrayList<String>();
    3535        StringTokenizer st = new StringTokenizer(MessageFormat.format(PROP_BROWSER.get(), urlstring));
    36         while( st.hasMoreTokens() ) {
     36        while (st.hasMoreTokens()) {
    3737            cmdParams.add(st.nextToken());
    3838        }
     
    4343        try {
    4444            browser = builder.start();
    45         } catch(IOException ioe) {
     45        } catch (IOException ioe) {
    4646            throw new IOException( "Could not start browser. Please check that the executable path is correct.\n" + ioe.getMessage() );
    4747        }
Note: See TracChangeset for help on using the changeset viewer.