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/data/ServerSidePreferences.java

    r5874 r6248  
    4747        public String download() throws MissingPassword {
    4848            try {
    49                 System.out.println("reading preferences from "+serverUrl);
     49                Main.info("reading preferences from "+serverUrl);
    5050                URLConnection con = serverUrl.openConnection();
    5151                String username = get("applet.username");
     
    8080            try {
    8181                URL u = new URL(getPreferencesDir());
    82                 System.out.println("uploading preferences to "+u);
     82                Main.info("uploading preferences to "+u);
    8383                HttpURLConnection con = (HttpURLConnection)u.openConnection();
    8484                String username = get("applet.username");
Note: See TracChangeset for help on using the changeset viewer.