@Override public String toString() { if (ApptentiveLog.shouldSanitizeLogMessages()) { JSONObject safeJsonObject = createSafeJsonObject(jsonObject); return StringUtils.format("%s %s", getClass().getSimpleName(), safeJsonObject); } return StringUtils.format("%s %s", getClass().getSimpleName(), jsonObject); }