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

    r6132 r6248  
    2626import org.openstreetmap.josm.gui.HelpAwareOptionPane;
    2727import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec;
     28import org.openstreetmap.josm.gui.Notification;
    2829import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    2930import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     
    3738import org.openstreetmap.josm.tools.ImageProvider;
    3839import org.xml.sax.SAXException;
    39 
    40 import org.openstreetmap.josm.gui.Notification;
    4140
    4241/**
     
    206205            }
    207206            monitor.appendLogMessage(msg);
    208             System.out.println(tr("Warning: {0}", msg));
     207            Main.warn(msg);
    209208            processedPrimitives.addAll(writer.getProcessedPrimitives());
    210209            processedPrimitives.add(p);
     
    301300        } catch (Exception e) {
    302301            if (uploadCanceled) {
    303                 System.out.println(tr("Ignoring caught exception because upload is canceled. Exception is: {0}", e.toString()));
     302                Main.info(tr("Ignoring caught exception because upload is canceled. Exception is: {0}", e.toString()));
    304303            } else {
    305304                lastException = e;
Note: See TracChangeset for help on using the changeset viewer.