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/io/AbstractUploadTask.java

    r6199 r6248  
    265265            }
    266266        }
    267         System.out.println(tr("Warning: error header \"{0}\" did not match with an expected pattern", errorHeader));
     267        Main.warn(tr("Error header \"{0}\" did not match with an expected pattern", errorHeader));
    268268        handleUploadConflictForUnknownConflict();
    269269    }
     
    280280            handleUploadPreconditionFailedConflict(e, conflict);
    281281        } else {
    282             System.out.println(tr("Warning: error header \"{0}\" did not match with an expected pattern", e.getErrorHeader()));
     282            Main.warn(tr("Error header \"{0}\" did not match with an expected pattern", e.getErrorHeader()));
    283283            ExceptionDialogUtil.explainPreconditionFailed(e);
    284284        }
Note: See TracChangeset for help on using the changeset viewer.