RemoLiechti commented on code in PR #56: URL: https://github.com/apache/sling-org-apache-sling-engine/pull/56#discussion_r1983699038
########## src/main/java/org/apache/sling/engine/impl/SlingHttpServletResponseImpl.java: ########## @@ -321,14 +330,17 @@ public void setContentType(final String type) { if (message.isPresent()) { if (isCheckContentTypeOnInclude()) { requestData.getRequestProgressTracker().log("ERROR: " + message.get()); + LOG.error(getCurrentStackTrace()); throw new ContentTypeChangeException(message.get()); } if (isProtectHeadersOnInclude()) { LOG.error(message.get()); + LOG.error(getCurrentStackTrace()); Review Comment: I'd like to keep two log lines to avoid getting the start of the stacktrace cut by the long message that contain the requestprogresstracker information. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@sling.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org