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/util/GuiHelper.java

    r6232 r6248  
    22package org.openstreetmap.josm.gui.util;
    33
     4import static org.openstreetmap.josm.tools.I18n.tr;
     5
    46import java.awt.BasicStroke;
    5 import static org.openstreetmap.josm.tools.I18n.tr;
    6 
    77import java.awt.Component;
    88import java.awt.Container;
     
    196196                }
    197197            } catch (NumberFormatException ex) {
    198                 System.err.println("Error in stroke preference format: "+code);
     198                Main.error("Error in stroke preference format: "+code);
    199199                dash = new float[]{5.0f};
    200200            }
    201201            if (sumAbs < 1e-1) {
    202                 System.err.println("Error in stroke dash fomat (all zeros): "+code);
     202                Main.error("Error in stroke dash fomat (all zeros): "+code);
    203203                return new BasicStroke(w);
    204204            }
Note: See TracChangeset for help on using the changeset viewer.