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/tagging/TaggingPreset.java

    r6101 r6248  
    150150                    });
    151151                } else {
    152                     System.out.println("Could not get presets icon " + iconName);
     152                    Main.warn("Could not get presets icon " + iconName);
    153153                }
    154154            }
     
    167167            this.nameTemplate = new TemplateParser(pattern).parse();
    168168        } catch (ParseError e) {
    169             System.err.println("Error while parsing " + pattern + ": " + e.getMessage());
     169            Main.error("Error while parsing " + pattern + ": " + e.getMessage());
    170170            throw new SAXException(e);
    171171        }
     
    176176            this.nameTemplateFilter = SearchCompiler.compile(filter, false, false);
    177177        } catch (org.openstreetmap.josm.actions.search.SearchCompiler.ParseError e) {
    178             System.err.println("Error while parsing" + filter + ": " + e.getMessage());
     178            Main.error("Error while parsing" + filter + ": " + e.getMessage());
    179179            throw new SAXException(e);
    180180        }
Note: See TracChangeset for help on using the changeset viewer.