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/preferences/imagery/AddWMSLayerPanel.java

    r6084 r6248  
    2222import javax.swing.JScrollPane;
    2323
     24import org.openstreetmap.josm.Main;
    2425import org.openstreetmap.josm.data.imagery.ImageryInfo;
    2526import org.openstreetmap.josm.gui.bbox.SlippyMapBBoxChooser;
     
    8384                    JOptionPane.showMessageDialog(getParent(), tr("Could not parse WMS layer list."),
    8485                            tr("WMS Error"), JOptionPane.ERROR_MESSAGE);
    85                     System.err.println("Could not parse WMS layer list. Incoming data:");
    86                     System.err.println(ex.getIncomingData());
     86                    Main.error("Could not parse WMS layer list. Incoming data:\n"+ex.getIncomingData());
    8787                }
    8888            }
Note: See TracChangeset for help on using the changeset viewer.