You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/03/18 14:29:47 UTC
[camel] 02/02: camel-core - InvalidPayloadException should not log body output (can be sensitive or very big).
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 65746e604672988916dddb006c3e5efe51116ece
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Mar 18 15:14:57 2022 +0100
camel-core - InvalidPayloadException should not log body output (can be sensitive or very big).
---
.../java/org/apache/camel/NoTypeConversionAvailableException.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/camel-api/src/main/java/org/apache/camel/NoTypeConversionAvailableException.java b/core/camel-api/src/main/java/org/apache/camel/NoTypeConversionAvailableException.java
index b2fef57..824d4e2 100644
--- a/core/camel-api/src/main/java/org/apache/camel/NoTypeConversionAvailableException.java
+++ b/core/camel-api/src/main/java/org/apache/camel/NoTypeConversionAvailableException.java
@@ -67,7 +67,7 @@ public class NoTypeConversionAvailableException extends CamelException {
public static String createMessage(Object value, Class<?> type) {
return "No type converter available to convert from type: "
+ (value != null ? value.getClass().getCanonicalName() : null)
- + " to the required type: " + type.getCanonicalName() + " with value " + value;
+ + " to the required type: " + type.getCanonicalName();
}
/**
@@ -76,6 +76,6 @@ public class NoTypeConversionAvailableException extends CamelException {
public static String createMessage(Object value, Class<?> type, Throwable cause) {
return "Converting Exception when converting from type: "
+ (value != null ? value.getClass().getCanonicalName() : null) + " to the required type: "
- + type.getCanonicalName() + " with value " + value + ", which is caused by " + cause;
+ + type.getCanonicalName() + ", which is caused by " + cause;
}
}