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/help/HelpBrowser.java

    r6105 r6248  
    145145            }
    146146        } catch(Exception e) {
    147             System.err.println(tr("Failed to read CSS file ''help-browser.css''. Exception is: {0}", e.toString()));
     147            Main.error(tr("Failed to read CSS file ''help-browser.css''. Exception is: {0}", e.toString()));
    148148            e.printStackTrace();
    149149            return ss;
     
    499499        @Override
    500500        public void update(Observable o, Object arg) {
    501             //System.out.println("BackAction: canGoBoack=" + history.canGoBack() );
    502501            setEnabled(history.canGoBack());
    503502        }
     
    559558                        return true;
    560559                    }
    561                 } catch(BadLocationException e) {
    562                     System.err.println(tr("Warning: bad location in HTML document. Exception was: {0}", e.toString()));
     560                } catch (BadLocationException e) {
     561                    Main.warn(tr("Bad location in HTML document. Exception was: {0}", e.toString()));
    563562                    e.printStackTrace();
    564563                }
Note: See TracChangeset for help on using the changeset viewer.