This is an automated email from the ASF dual-hosted git repository.
cziegeler pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-engine.git
The following commit(s) were added to refs/heads/master by this push:
new d0f11fb SLING-11702 : Prevent wrong handling of error handlers
d0f11fb is described below
commit d0f11fbb4976eaf2fc1f3bc75911bfecef0a807b
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Sun Nov 27 14:35:26 2022 +0100
SLING-11702 : Prevent wrong handling of error handlers
---
src/main/java/org/apache/sling/engine/impl/DefaultErrorHandler.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/src/main/java/org/apache/sling/engine/impl/DefaultErrorHandler.java
b/src/main/java/org/apache/sling/engine/impl/DefaultErrorHandler.java
index a973826..d9f6117 100644
--- a/src/main/java/org/apache/sling/engine/impl/DefaultErrorHandler.java
+++ b/src/main/java/org/apache/sling/engine/impl/DefaultErrorHandler.java
@@ -70,7 +70,7 @@ public class DefaultErrorHandler implements ErrorHandler {
log.error(m, t);
if (response.isCommitted()) {
- log.error(
+ log.warn(
"handleError: Response already committed; cannot send error "
+ originalStatus + " : " + originalMessage);
return;
@@ -100,7 +100,7 @@ public class DefaultErrorHandler implements ErrorHandler {
final SlingHttpServletResponse response)
throws IOException {
if (response.isCommitted()) {
- log.error(
+ log.warn(
"handleError: Response already committed; cannot send error "
+ status + " : " + message);
return;
@@ -146,7 +146,7 @@ public class DefaultErrorHandler implements ErrorHandler {
final SlingHttpServletResponse response)
throws IOException {
if (response.isCommitted()) {
- log.error(
+ log.warn(
"handleError: Response already committed; cannot send error "
+ throwable.getMessage(), throwable);
return;