camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gzurow...@apache.org
Subject [camel] 02/02: Fix placeholders in logging statements
Date Mon, 08 Apr 2019 07:21:26 GMT
This is an automated email from the ASF dual-hosted git repository.

gzurowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 15f26883515231610c753d25e224c5e26cb4d641
Author: Gregor Zurowski <gregor@zurowski.org>
AuthorDate: Mon Apr 8 09:21:01 2019 +0200

    Fix placeholders in logging statements
---
 .../src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java     | 2 +-
 .../java/org/apache/camel/impl/health/DefaultHealthCheckService.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/camel-base/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java
b/core/camel-base/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java
index 2278ac0..ef2baef 100644
--- a/core/camel-base/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java
+++ b/core/camel-base/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java
@@ -512,7 +512,7 @@ public class XmlConverter {
                 xmlReader = xmlReaderPool.createXMLReader();
             }
         } catch (Exception ex) {
-            LOG.warn("Cannot create the SAXParser XMLReader, due to {}", ex);
+            LOG.warn("Cannot create the SAXParser XMLReader, due to {}", ex.getMessage(),
ex);
         }
         return new SAXSource(xmlReader, inputSource);
     }
diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/health/DefaultHealthCheckService.java
b/core/camel-base/src/main/java/org/apache/camel/impl/health/DefaultHealthCheckService.java
index ac0983e..bbf6b58 100644
--- a/core/camel-base/src/main/java/org/apache/camel/impl/health/DefaultHealthCheckService.java
+++ b/core/camel-base/src/main/java/org/apache/camel/impl/health/DefaultHealthCheckService.java
@@ -182,7 +182,7 @@ public final class DefaultHealthCheckService extends ServiceSupport implements
H
         if (ObjectHelper.isNotEmpty(registry) && ObjectHelper.isEmpty(future)) {
             // Start the health check task only if the health check registry
             // has been registered.
-            LOGGER.debug("Schedule health-checks to be executed every %d (%s)", checkInterval,
checkIntervalUnit.name());
+            LOGGER.debug("Schedule health-checks to be executed every {} ({})", checkInterval,
checkIntervalUnit.name());
             future = executorService.scheduleAtFixedRate(
                 () -> {
                     if (!isRunAllowed()) {


Mime
View raw message