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 2023/01/30 17:01:24 UTC
[camel] branch camel-3.x updated: camel-main - Avoid logging property placeholder header if no placeholders.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.x by this push:
new c56bf9bba8c camel-main - Avoid logging property placeholder header if no placeholders.
c56bf9bba8c is described below
commit c56bf9bba8c9d4435bc4e49ce108ec5b6399921e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Jan 30 18:00:44 2023 +0100
camel-main - Avoid logging property placeholder header if no placeholders.
---
.../src/main/java/org/apache/camel/main/BaseMainSupport.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
index 850eb8a7614..eb4b3f90bbf 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
@@ -716,7 +716,7 @@ public abstract class BaseMainSupport extends BaseService {
public void notify(CamelEvent event) throws Exception {
// log summary of configurations
if (!propertyPlaceholders.isEmpty()) {
- LOG.info("Property-placeholders summary");
+ boolean header = true;
for (var entry : propertyPlaceholders.entrySet()) {
String k = entry.getKey().toString();
Object v = entry.getValue();
@@ -726,6 +726,10 @@ public abstract class BaseMainSupport extends BaseService {
boolean same = ObjectHelper.equal(v, dv);
boolean skip = "templateId".equals(k);
if (!same && !skip) {
+ if (header) {
+ LOG.info("Property-placeholders summary");
+ header = false;
+ }
String loc = locationSummary(propertyPlaceholders, k);
if (SensitiveUtils.containsSensitive(k)) {
LOG.info(" {} {}=xxxxxx", loc, k);