DefaultResponseErrorHandler shows full error details
Closes gh-27552
This commit is contained in:
@@ -60,16 +60,11 @@ public abstract class LogFormatUtils {
|
||||
return "";
|
||||
}
|
||||
String result;
|
||||
if (value instanceof CharSequence) {
|
||||
result = "\"" + value + "\"";
|
||||
try {
|
||||
result = value.toString();
|
||||
}
|
||||
else {
|
||||
try {
|
||||
result = value.toString();
|
||||
}
|
||||
catch (Throwable ex) {
|
||||
result = ex.toString();
|
||||
}
|
||||
catch (Throwable ex) {
|
||||
result = ex.toString();
|
||||
}
|
||||
if (maxLength != -1) {
|
||||
result = (result.length() > maxLength ? result.substring(0, maxLength) + " (truncated)..." : result);
|
||||
@@ -77,6 +72,9 @@ public abstract class LogFormatUtils {
|
||||
if (replaceNewlines) {
|
||||
result = result.replace("\n", "<LF>").replace("\r", "<CR>");
|
||||
}
|
||||
if (value instanceof CharSequence) {
|
||||
result = "\"" + result + "\"";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user