@Override public String toString() { StringBuilder message = new StringBuilder(); if (executionCount > 0) { message.append("executed:" + executionCount + ","); if (retriesLeft > 0) { message.append("retriesLeft:" + retriesLeft + ","); } if (!hasError()) { message.append("error:None,"); } } if (hasError()) { message.append("error:" + (hasHardError() ? "Hard" : "Soft") + ","); } if (downloadedCount > 0) { message.append("downloaded:" + downloadedCount + ","); } if (messagesAdded > 0) { message.append("messagesAdded:" + messagesAdded + ","); } if (mentionsAdded > 0) { message.append("mentionsAdded:" + mentionsAdded + ","); } if (directedAdded > 0) { message.append("directedAdded:" + directedAdded + ","); } return MyLog.formatKeyValue("CommandResult", message); }
@Override public String toString() { StringBuilder sb = new StringBuilder(64); sb.append("instance:" + instanceId + ","); sb.append("id:" + getId() + ","); return MyLog.formatKeyValue(this, sb.toString()); }