mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
27.26.2007 7548e406d8c7b1ec684f9955f38ef3f23ac95d81
Removing the bullet prefix for task log messages since they don't render properly on all platforms and they are less usefull now that log messages are prepended with the date stamp.
1 files modified
18 ■■■■■ changed files
opends/src/server/org/opends/server/tools/tasks/TaskEntry.java 18 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/tasks/TaskEntry.java
@@ -258,7 +258,7 @@
  public List<Message> getLogMessages() {
    List<Message> formattedLogs = new ArrayList<Message>();
    for (String aLog : logs) {
      formattedLogs.add(Message.raw(formatLogMessage(aLog)));
      formattedLogs.add(Message.raw(aLog));
    }
    return Collections.unmodifiableList(formattedLogs);
  }
@@ -421,22 +421,6 @@
  }
  /**
   * Formats a log message for appending to the table.
   * @param msg to format
   * @return formatted message
   */
  private String formatLogMessage(String msg) {
    // Use this to prepend to log messages.  Since they
    // are long and usually wrap, without this it is
    // difficult to tell where one stops and another starts
    StringBuffer sb = new StringBuffer();
    sb.append("\u2022");
    sb.append(" ");
    sb.append(msg);
    return sb.toString();
  }
  /**
   * Formats a time string into a human friendly format.
   * @param timeString the is human hostile
   * @return string of time that is human friendly