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/layer/TMSLayer.java

    r6093 r6248  
    329329                String r = new Scanner(in).useDelimiter("\\A").next();
    330330                Utils.close(in);
    331                 System.out.println("Successfully loaded Bing attribution data.");
     331                Main.info("Successfully loaded Bing attribution data.");
    332332                return r.getBytes("utf-8");
    333333            }
     
    347347                            return parseAttributionText(new InputSource(new StringReader((xml))));
    348348                        } catch (IOException ex) {
    349                             System.err.println("Could not connect to Bing API. Will retry in " + waitTimeSec + " seconds.");
     349                            Main.warn("Could not connect to Bing API. Will retry in " + waitTimeSec + " seconds.");
    350350                            Thread.sleep(waitTimeSec * 1000L);
    351351                            waitTimeSec *= 2;
Note: See TracChangeset for help on using the changeset viewer.