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/validation/tests/TagChecker.java

    r6142 r6248  
    259259                                checkerData.add(d);
    260260                            } else {
    261                                 System.err.println(tr("Invalid tagchecker line - {0}: {1}", err, line));
     261                                Main.error(tr("Invalid tagchecker line - {0}: {1}", err, line));
    262262                            }
    263263                        }
     
    267267                        spellCheckKeyData.put(line.substring(1), okValue);
    268268                    } else {
    269                         System.err.println(tr("Invalid spellcheck line: {0}", line));
     269                        Main.error(tr("Invalid spellcheck line: {0}", line));
    270270                    }
    271271                }
     
    310310                                presetsValueData.putAll(ky.key, ky.getValues());
    311311                            } catch (NullPointerException e) {
    312                                 System.err.println(p+": Unable to initialize "+ky);
     312                                Main.error(p+": Unable to initialize "+ky);
    313313                            }
    314314                        }
Note: See TracChangeset for help on using the changeset viewer.