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
The following commit(s) were added to refs/heads/main by this push: new 4e0e191dbf4 Code scanning. Avoid logging value in type-converter 4e0e191dbf4 is described below commit 4e0e191dbf429f83d54a9a9d6fce4194181c3ff9 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Mon Dec 26 16:34:20 2022 +0100 Code scanning. Avoid logging value in type-converter --- .../org/apache/camel/impl/converter/CoreTypeConverterRegistry.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/converter/CoreTypeConverterRegistry.java b/core/camel-base/src/main/java/org/apache/camel/impl/converter/CoreTypeConverterRegistry.java index 5983cd80b5b..637603515b2 100644 --- a/core/camel-base/src/main/java/org/apache/camel/impl/converter/CoreTypeConverterRegistry.java +++ b/core/camel-base/src/main/java/org/apache/camel/impl/converter/CoreTypeConverterRegistry.java @@ -397,9 +397,10 @@ public class CoreTypeConverterRegistry extends ServiceSupport implements TypeCon boolean statisticsEnabled = !tryConvert && statistics.isStatisticsEnabled(); // we only capture if not try-convert in use if (trace) { - LOG.trace("Finding type converter to convert {} -> {} with value: {}", + // Replace pattern-breaking characters + LOG.trace("Finding type converter to convert {} -> {}", value == null ? "null" : value.getClass().getCanonicalName(), - type.getCanonicalName(), value); + type.getCanonicalName()); } if (value == null) {